System.getProperties().getProperty => System.getProperty.
My motivation was that it's slightly easier for a nullness checker to determine that System.getProperty(standardProperty) is (generally speaking) non-null. But it turns out that java.runtime.name is not a standard property!
Still, this is a slight simplification, so I guess I'm submitting.
RELNOTES=n/a
@@ -206,7 +206,7 @@ final class Platform {
/** Tests if current platform is Android. */
static boolean isAndroid() {
- return System.getProperties().getProperty("java.runtime.name").contains("Android");
+ return System.getProperty("java.runtime.name").contains("Android");
}
/**
