Skip to content

Commit 9810c26

Browse files
committed
public static final is not-need in interfaces
1 parent f4833f2 commit 9810c26

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed

base/interfaces/src/main/java/org/openscience/cdk/interfaces/IStereoElement.java

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@
121121
public interface IStereoElement<F extends IChemObject, C extends IChemObject>
122122
extends ICDKObject {
123123

124-
public static final int CLS_MASK = 0xff_00;
125-
public static final int CFG_MASK = 0x00_ff;
124+
int CLS_MASK = 0xff_00;
125+
int CFG_MASK = 0x00_ff;
126126

127-
public static final int LEFT = 0x00_01;
128-
public static final int RIGHT = 0x00_02;
129-
public static final int OPPOSITE = LEFT;
130-
public static final int TOGETHER = RIGHT;
127+
int LEFT = 0x00_01;
128+
int RIGHT = 0x00_02;
129+
int OPPOSITE = LEFT;
130+
int TOGETHER = RIGHT;
131131

132132
/*
133133
* Important! The forth nibble of the stereo-class defines the number of
@@ -136,120 +136,120 @@ public interface IStereoElement<F extends IChemObject, C extends IChemObject>
136136
*/
137137

138138
/** Geometric CisTrans (e.g. but-2-ene) */
139-
public static final int CT = 0x21_00;
139+
int CT = 0x21_00;
140140

141141
/** Tetrahedral (T-4) (e.g. butan-2-ol)*/
142-
public static final int TH = 0x42_00;
142+
int TH = 0x42_00;
143143

144144
/** ExtendedTetrahedral a.k.a. allene (e.g. 2,3-pentadiene) */
145-
public static final int AL = 0x43_00;
145+
int AL = 0x43_00;
146146

147147
/** ExtendedCisTrans a.k.a. cumulene (e.g. hexa-2,3,4-triene) */
148-
public static final int CU = 0x22_00;
148+
int CU = 0x22_00;
149149

150150
/** Atropisomeric (e.g. BiNAP) */
151-
public static final int AT = 0x44_00;
151+
int AT = 0x44_00;
152152

153153
/** Square Planar (SP-4) (e.g. cisplatin) */
154-
public static final int SP = 0x45_00;
154+
int SP = 0x45_00;
155155

156156
/** Square Pyramidal (SPY-5) */
157-
public static final int SPY = 0x51_00;
157+
int SPY = 0x51_00;
158158

159159
/** Trigonal Bipyramidal (TBPY-5) */
160-
public static final int TBPY = 0x52_00;
160+
int TBPY = 0x52_00;
161161

162162
/** Octahedral (OC-6) */
163-
public static final int OC = 0x61_00;
163+
int OC = 0x61_00;
164164

165165
/** Pentagonal Bipyramidal (PBPY-7) */
166-
public static final int PBPY = 0x71_00;
166+
int PBPY = 0x71_00;
167167

168168
/** Hexagonal Bipyramidal (HBPY-8) */
169-
public static final int HBPY8 = 0x81_00;
169+
int HBPY8 = 0x81_00;
170170

171171
/** Heptagonal Bipyramidal (HBPY-9) */
172-
public static final int HBPY9 = 0x91_00;
172+
int HBPY9 = 0x91_00;
173173

174174
/** Geometric CisTrans (e.g. but-2-ene) */
175-
public static final int CisTrans = CT;
175+
int CisTrans = CT;
176176

177177
/** Tetrahedral (T-4) (e.g. butan-2-ol)*/
178-
public static final int Tetrahedral = TH;
178+
int Tetrahedral = TH;
179179

180180
/** ExtendedTetrahedral (e.g. 2,3-pentadiene) */
181-
public static final int Allenal = AL;
181+
int Allenal = AL;
182182

183183
/** Cumulene */
184-
public static final int Cumulene = CU;
184+
int Cumulene = CU;
185185

186186
/** Atropisomeric (e.g. BiNAP) */
187-
public static final int Atropisomeric = AT;
187+
int Atropisomeric = AT;
188188

189189
/** Square Planar (SP-4) (e.g. cisplatin) */
190-
public static final int SquarePlanar = SP;
190+
int SquarePlanar = SP;
191191

192192
/** Square Pyramidal (SPY-5) */
193-
public static final int SquarePyramidal = SPY;
193+
int SquarePyramidal = SPY;
194194

195195
/** Trigonal Bipyramidal (TBPY-5) */
196-
public static final int TrigonalBipyramidal = TBPY;
196+
int TrigonalBipyramidal = TBPY;
197197

198198
/** Octahedral (OC-6) */
199-
public static final int Octahedral = OC;
199+
int Octahedral = OC;
200200

201201
/** Pentagonal Bipyramidal (PBPY-7) */
202-
public static final int PentagonalBipyramidal = PBPY;
202+
int PentagonalBipyramidal = PBPY;
203203

204204
/** Hexagonal Bipyramidal (HBPY-8) */
205-
public static final int HexagonalBipyramidal = HBPY8;
205+
int HexagonalBipyramidal = HBPY8;
206206

207207
/** Heptagonal Bipyramidal (HBPY-9) */
208-
public static final int HeptagonalBipyramidal = HBPY9;
208+
int HeptagonalBipyramidal = HBPY9;
209209

210210
/** Square Planar Configutation in U Shape */
211-
public static final int SPU = SP | 1;
211+
int SPU = SP | 1;
212212
/** Square Planar Configutation in 4 Shape */
213-
public static final int SP4 = SP | 2;
213+
int SP4 = SP | 2;
214214
/** Square Planar Configutation in Z Shape */
215-
public static final int SPZ = SP | 3;
215+
int SPZ = SP | 3;
216216

217217
/** Mask for the stereo group information */
218-
public static final int GRP_MASK = 0xff_0000;
218+
int GRP_MASK = 0xff_0000;
219219
/** Mask for the stereo group type information, GRP_ABS, GRP_AND, GRP_OR */
220-
public static final int GRP_TYPE_MASK = 0x03_0000;
220+
int GRP_TYPE_MASK = 0x03_0000;
221221
/** Mask for the stereo group number information, 0x0 .. 0xf (1..15) */
222-
public static final int GRP_NUM_MASK = 0xfc_0000;
223-
public static final int GRP_NUM_SHIFT = 18; // Integer.numberOfTrailingZeros(0xfc_0000);
222+
int GRP_NUM_MASK = 0xfc_0000;
223+
int GRP_NUM_SHIFT = 18; // Integer.numberOfTrailingZeros(0xfc_0000);
224224

225225
/** Stereo group type ABS (absolute) */
226-
public static final int GRP_ABS = 0x00_0000;
226+
int GRP_ABS = 0x00_0000;
227227
/** Stereo group type AND (and enantiomer) */
228-
public static final int GRP_AND = 0x01_0000;
228+
int GRP_AND = 0x01_0000;
229229
/** Stereo group type OR (or enantiomer) */
230-
public static final int GRP_OR = 0x02_0000;
230+
int GRP_OR = 0x02_0000;
231231

232232
/** Convenience field for testing if the stereo is group AND1 (&amp;1). */
233-
public static final int GRP_AND1 = GRP_AND | (1 << GRP_NUM_SHIFT);
233+
int GRP_AND1 = GRP_AND | (1 << GRP_NUM_SHIFT);
234234
/** Convenience field for testing if the stereo is group AND2 (&amp;2). */
235-
public static final int GRP_AND2 = GRP_AND | (2 << GRP_NUM_SHIFT);
235+
int GRP_AND2 = GRP_AND | (2 << GRP_NUM_SHIFT);
236236
/** Convenience field for testing if the stereo is group AND3 (&amp;3). */
237-
public static final int GRP_AND3 = GRP_AND | (3 << GRP_NUM_SHIFT);
237+
int GRP_AND3 = GRP_AND | (3 << GRP_NUM_SHIFT);
238238
/** Convenience field for testing if the stereo is group AND4 (&amp;4). */
239-
public static final int GRP_AND4 = GRP_AND | (4 << GRP_NUM_SHIFT);
239+
int GRP_AND4 = GRP_AND | (4 << GRP_NUM_SHIFT);
240240
/** Convenience field for testing if the stereo is group AND5 (&amp;5). */
241-
public static final int GRP_AND5 = GRP_AND | (5 << GRP_NUM_SHIFT);
241+
int GRP_AND5 = GRP_AND | (5 << GRP_NUM_SHIFT);
242242

243243
/** Convenience field for testing if the stereo is group OR1 (&amp;1). */
244-
public static final int GRP_OR1 = GRP_OR | (1 << GRP_NUM_SHIFT);
244+
int GRP_OR1 = GRP_OR | (1 << GRP_NUM_SHIFT);
245245
/** Convenience field for testing if the stereo is group OR2 (&amp;2). */
246-
public static final int GRP_OR2 = GRP_OR | (2 << GRP_NUM_SHIFT);
246+
int GRP_OR2 = GRP_OR | (2 << GRP_NUM_SHIFT);
247247
/** Convenience field for testing if the stereo is group OR3 (&amp;3). */
248-
public static final int GRP_OR3 = GRP_OR | (3 << GRP_NUM_SHIFT);
248+
int GRP_OR3 = GRP_OR | (3 << GRP_NUM_SHIFT);
249249
/** Convenience field for testing if the stereo is group OR4 (&amp;4). */
250-
public static final int GRP_OR4 = GRP_OR | (4 << GRP_NUM_SHIFT);
250+
int GRP_OR4 = GRP_OR | (4 << GRP_NUM_SHIFT);
251251
/** Convenience field for testing if the stereo is group OR5 (&amp;5). */
252-
public static final int GRP_OR5 = GRP_OR | (5 << GRP_NUM_SHIFT);
252+
int GRP_OR5 = GRP_OR | (5 << GRP_NUM_SHIFT);
253253

254254
/**
255255
* The focus atom or bond at the 'centre' of the stereo-configuration.

0 commit comments

Comments
 (0)