tuned whitespace;
authorwenzelm
Fri, 02 Jul 2021 11:35:53 +0200
changeset 73917 b5d52a4d6fd9
parent 73916 c6631069357b
child 73918 07781cae0f71
tuned whitespace;
src/Tools/Setup/isabelle/setup/Build_Scala.java
--- a/src/Tools/Setup/isabelle/setup/Build_Scala.java	Fri Jul 02 11:29:33 2021 +0200
+++ b/src/Tools/Setup/isabelle/setup/Build_Scala.java	Fri Jul 02 11:35:53 2021 +0200
@@ -39,65 +39,23 @@
             if (Files.exists(path)) { props.load(Files.newBufferedReader(path)); }
         }
 
-        @Override public String toString()
-        {
-            return component_dir.toString();
-        }
-
-        public String component_name()
-        {
-            return component_dir.toFile().getName();
-        }
-
-        public String name()
-        {
-            return props.getProperty("name", component_name());
-        }
+        @Override public String toString() { return component_dir.toString(); }
 
-        public String description()
-        {
-            return props.getProperty("description", name());
-        }
-
-        public String lib_name()
-        {
-            return props.getProperty("lib", "lib") + "/" + name();
-        }
-
-        public String jar_name()
-        {
-            return lib_name() + ".jar";
-        }
+        public String component_name() { return component_dir.toFile().getName(); }
+        public String name() { return props.getProperty("name", component_name()); }
+        public String description() { return props.getProperty("description", name()); }
 
-        public String shasum_name()
-        {
-            return lib_name() + ".shasum";
-        }
+        public String lib_name() { return props.getProperty("lib", "lib") + "/" + name(); }
+        public String jar_name() { return lib_name() + ".jar"; }
+        public String shasum_name() { return lib_name() + ".shasum"; }
 
-        public String main()
-        {
-            return props.getProperty("main", "");
-        }
-
-        public String[] sources()
-        {
-            return props.getProperty("sources", "").split("\\s+");
-        }
+        public String main() { return props.getProperty("main", ""); }
 
-        public String[] services()
-        {
-            return props.getProperty("services", "").split("\\s+");
-        }
+        public String[] sources() { return props.getProperty("sources", "").split("\\s+"); }
+        public String[] services() { return props.getProperty("services", "").split("\\s+"); }
 
-        public Path path(String file)
-        {
-            return component_dir.resolve(file);
-        }
-
-        public boolean exists(String file)
-        {
-            return Files.exists(path(file));
-        }
+        public Path path(String file) { return component_dir.resolve(file); }
+        public boolean exists(String file) { return Files.exists(path(file)); }
 
         public String shasum(String file)
             throws IOException, NoSuchAlgorithmException
@@ -130,9 +88,7 @@
             String shasum_sources;
             {
                 StringBuilder _shasum = new StringBuilder();
-                for (String s : sources) {
-                    _shasum.append(context.shasum(s));
-                }
+                for (String s : sources) { _shasum.append(context.shasum(s)); }
                 shasum_sources = _shasum.toString();
             }
             if (fresh || !shasum_old.equals(context.shasum(jar_name) + shasum_sources)) {