Skip to content

Commit 8758d01

Browse files
committed
Move static fields to the top the file.
1 parent 5dd46fc commit 8758d01

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tool/sdg/src/main/java/org/openscience/cdk/layout/StructureDiagramGenerator.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,12 @@
108108
*/
109109
public class StructureDiagramGenerator {
110110

111-
public static final double RAD_30 = Math.toRadians(-30);
112-
private static ILoggingTool logger = LoggingToolFactory.createLoggingTool(StructureDiagramGenerator.class);
113-
public static final double DEFAULT_BOND_LENGTH = 1.5;
111+
private static final double DEFAULT_BOND_LENGTH = 1.5;
112+
private static final Vector2d DEFAULT_BOND_VECTOR = new Vector2d(0, 1);
113+
private static final IdentityTemplateLibrary DEFAULT_TEMPLATE_LIBRARY = IdentityTemplateLibrary.loadFromResource("custom-templates.smi")
114+
.add(IdentityTemplateLibrary.loadFromResource("chebi-ring-templates.smi"));
115+
private static final double RAD_30 = Math.toRadians(-30);
116+
private static final ILoggingTool logger = LoggingToolFactory.createLoggingTool(StructureDiagramGenerator.class);
114117

115118
private IAtomContainer molecule;
116119
private IRingSet sssr;
@@ -134,9 +137,7 @@ public class StructureDiagramGenerator {
134137
*/
135138
private IdentityTemplateLibrary identityLibrary;
136139

137-
public static Vector2d DEFAULT_BOND_VECTOR = new Vector2d(0, 1);
138-
private static IdentityTemplateLibrary DEFAULT_TEMPLATE_LIBRARY = IdentityTemplateLibrary.loadFromResource("custom-templates.smi")
139-
.add(IdentityTemplateLibrary.loadFromResource("chebi-ring-templates.smi"));
140+
140141

141142

142143
/**

0 commit comments

Comments
 (0)