From a9e12f6c508810604c8c91ee15451776b08ce1a1 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 22 Apr 2019 07:41:56 -0400
Subject: [PATCH] Camera capslock fix

---
 timeflow/format/field/FieldFormatCatalog.java |   89 ++++++++++++++++++++++++--------------------
 1 files changed, 48 insertions(+), 41 deletions(-)

diff --git a/timeflow/format/field/FieldFormatCatalog.java b/timeflow/format/field/FieldFormatCatalog.java
index d65092c..be5112b 100755
--- a/timeflow/format/field/FieldFormatCatalog.java
+++ b/timeflow/format/field/FieldFormatCatalog.java
@@ -6,49 +6,56 @@
 import java.net.URL;
 import java.util.*;
 
-public class FieldFormatCatalog {
+public class FieldFormatCatalog
+{
+        private static Map<String, FieldFormat> formatTable = new HashMap<String, FieldFormat>();
+        private static Map<Class, FieldFormat> classTable = new HashMap<Class, FieldFormat>();
 
-	private static Map<String, FieldFormat> formatTable=new HashMap<String, FieldFormat>();
-	private static Map<Class, FieldFormat> classTable=new HashMap<Class, FieldFormat>();
+        static
+        {
+                for (FieldFormat f : listFormats())
+                {
+                        formatTable.put(f.getHumanName(), f);
+                        classTable.put(f.getType(), f);
+                }
+        }
 
-	static
-	{
-		for (FieldFormat f: listFormats())
-		{
-			formatTable.put(f.getHumanName(), f);
-			classTable.put(f.getType(), f);
-		}
-	}
-	
-	static FieldFormat[] listFormats()
-	{
-		return new FieldFormat[] {new FormatDateTime(), new FormatString(),
-				new FormatStringArray(), new FormatDouble(), new FormatURL()};
-	}
-	
-	public static Iterable<String> classNames()
-	{
-		return formatTable.keySet();
-	}
-	
-	public static String humanName(Class c){
-		return getFormat(c).getHumanName();
-	}
-	
+        static FieldFormat[] listFormats()
+        {
+                return new FieldFormat[]
+                        {
+                                new FormatDateTime(), new FormatString(),
+                                new FormatStringArray(), new FormatDouble(), new FormatURL()
+                        };
+        }
 
-	public static FieldFormat getFormat(Class c) {
-		FieldFormat f= classTable.get(c);
-		if (f==null)
-			System.out.println("Warning: no FieldFormat for "+c);
-		return f;
-	}
+        public static Iterable<String> classNames()
+        {
+                return formatTable.keySet();
+        }
 
-	
-	public static Class javaClass(String humanName)
-	{
-		Class  c=formatTable.get(humanName).getType();
-		if (c==null)
-			System.out.println("Warning: no class for "+humanName);
-		return c;
-	}
+        public static String humanName(Class c)
+        {
+                return getFormat(c).getHumanName();
+        }
+
+        public static FieldFormat getFormat(Class c)
+        {
+                FieldFormat f = classTable.get(c);
+                if (f == null)
+                {
+                        System.out.println("Warning: no FieldFormat for " + c);
+                }
+                return f;
+        }
+
+        public static Class javaClass(String humanName)
+        {
+                Class c = formatTable.get(humanName).getType();
+                if (c == null)
+                {
+                        System.out.println("Warning: no class for " + humanName);
+                }
+                return c;
+        }
 }

--
Gitblit v1.6.2