Skip to content

Commit 3f6483d

Browse files
committed
test no IS_WINDOWS
1 parent 4e507a0 commit 3f6483d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

google-http-client/src/main/java/com/google/api/client/util/store/FileDataStoreFactory.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@
5656
*/
5757
public class FileDataStoreFactory extends AbstractDataStoreFactory {
5858

59-
private static final boolean IS_WINDOWS;
60-
static {
61-
try {
62-
IS_WINDOWS =
63-
StandardSystemProperty.OS_NAME.value().toLowerCase(Locale.ENGLISH).startsWith("windows");
64-
} catch (Throwable ex) {
65-
Logger.getLogger(FileDataStoreFactory.class.getName()).severe(ex.getMessage());
66-
throw ex;
67-
}
68-
}
59+
// private static final boolean IS_WINDOWS;
60+
// static {
61+
// try {
62+
// IS_WINDOWS =
63+
// StandardSystemProperty.OS_NAME.value().toLowerCase(Locale.ENGLISH).startsWith("windows");
64+
// } catch (Throwable ex) {
65+
// Logger.getLogger(FileDataStoreFactory.class.getName()).severe(ex.getMessage());
66+
// throw ex;
67+
// }
68+
// }
6969

7070
/** Directory to store data. */
7171
private final File dataDirectory;
@@ -83,11 +83,11 @@ public FileDataStoreFactory(File dataDirectory) throws IOException {
8383
}
8484
this.dataDirectory = dataDirectory;
8585

86-
if (IS_WINDOWS) {
87-
setPermissionsToOwnerOnlyWindows(dataDirectory);
88-
} else {
86+
// if (IS_WINDOWS) {
87+
// setPermissionsToOwnerOnlyWindows(dataDirectory);
88+
// } else {
8989
setPermissionsToOwnerOnly(dataDirectory);
90-
}
90+
// }
9191
}
9292

9393
/** Returns the data directory. */

0 commit comments

Comments
 (0)