JAL-3746 apply copyright to source
[jalview.git] / src / jalview / bin / HiDPISetting.java
index 38b7587..2bce673 100644 (file)
@@ -1,5 +1,27 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ * 
+ * This file is part of Jalview.
+ * 
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License 
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *  
+ * Jalview is distributed in the hope that it will be useful, but 
+ * WITHOUT ANY WARRANTY; without even the implied warranty 
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+ * PURPOSE.  See the GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
+ */
 package jalview.bin;
 
+import java.util.Locale;
+
 import java.awt.HeadlessException;
 
 public class HiDPISetting
@@ -45,7 +67,7 @@ public class HiDPISetting
   static
   {
     String system = System.getProperty("os.name") == null ? null
-            : System.getProperty("os.name").toLowerCase();
+            : System.getProperty("os.name").toLowerCase(Locale.ROOT);
     if (system != null)
     {
       isLinux = system.indexOf("linux") > -1;
@@ -167,10 +189,12 @@ public class HiDPISetting
     int dimensionScale = 1 + (mindimension / bigScreenThreshold);
 
     // reject outrageous values -- dpiScale in particular could be mistaken
-    if (dpiScale > MAX_SCALE) {
+    if (dpiScale > MAX_SCALE)
+    {
       dpiScale = 1;
     }
-    if (dimensionScale > MAX_SCALE) {
+    if (dimensionScale > MAX_SCALE)
+    {
       dimensionScale = 1;
     }