Skip to content

Commit f09b474

Browse files
committed
Checkstyle: Constants should follow naming conventions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1677400 13f79535-47bb-0310-9956-ffa450edef68
1 parent 56ea2c3 commit f09b474

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/main/java/org/apache/commons/cli/OptionBuilder.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public final class OptionBuilder
5757
private static char valuesep;
5858

5959
/** option builder instance */
60-
private static final OptionBuilder instance = new OptionBuilder();
60+
private static final OptionBuilder INSTANCE = new OptionBuilder();
6161

6262
static
6363
{
@@ -98,7 +98,7 @@ public static OptionBuilder withLongOpt(String newLongopt)
9898
{
9999
OptionBuilder.longopt = newLongopt;
100100

101-
return instance;
101+
return INSTANCE;
102102
}
103103

104104
/**
@@ -110,7 +110,7 @@ public static OptionBuilder hasArg()
110110
{
111111
OptionBuilder.numberOfArgs = 1;
112112

113-
return instance;
113+
return INSTANCE;
114114
}
115115

116116
/**
@@ -124,7 +124,7 @@ public static OptionBuilder hasArg(boolean hasArg)
124124
{
125125
OptionBuilder.numberOfArgs = hasArg ? 1 : Option.UNINITIALIZED;
126126

127-
return instance;
127+
return INSTANCE;
128128
}
129129

130130
/**
@@ -137,7 +137,7 @@ public static OptionBuilder withArgName(String name)
137137
{
138138
OptionBuilder.argName = name;
139139

140-
return instance;
140+
return INSTANCE;
141141
}
142142

143143
/**
@@ -149,7 +149,7 @@ public static OptionBuilder isRequired()
149149
{
150150
OptionBuilder.required = true;
151151

152-
return instance;
152+
return INSTANCE;
153153
}
154154

155155
/**
@@ -175,7 +175,7 @@ public static OptionBuilder withValueSeparator(char sep)
175175
{
176176
OptionBuilder.valuesep = sep;
177177

178-
return instance;
178+
return INSTANCE;
179179
}
180180

181181
/**
@@ -198,7 +198,7 @@ public static OptionBuilder withValueSeparator()
198198
{
199199
OptionBuilder.valuesep = '=';
200200

201-
return instance;
201+
return INSTANCE;
202202
}
203203

204204
/**
@@ -212,7 +212,7 @@ public static OptionBuilder isRequired(boolean newRequired)
212212
{
213213
OptionBuilder.required = newRequired;
214214

215-
return instance;
215+
return INSTANCE;
216216
}
217217

218218
/**
@@ -224,7 +224,7 @@ public static OptionBuilder hasArgs()
224224
{
225225
OptionBuilder.numberOfArgs = Option.UNLIMITED_VALUES;
226226

227-
return instance;
227+
return INSTANCE;
228228
}
229229

230230
/**
@@ -237,7 +237,7 @@ public static OptionBuilder hasArgs(int num)
237237
{
238238
OptionBuilder.numberOfArgs = num;
239239

240-
return instance;
240+
return INSTANCE;
241241
}
242242

243243
/**
@@ -250,7 +250,7 @@ public static OptionBuilder hasOptionalArg()
250250
OptionBuilder.numberOfArgs = 1;
251251
OptionBuilder.optionalArg = true;
252252

253-
return instance;
253+
return INSTANCE;
254254
}
255255

256256
/**
@@ -263,7 +263,7 @@ public static OptionBuilder hasOptionalArgs()
263263
OptionBuilder.numberOfArgs = Option.UNLIMITED_VALUES;
264264
OptionBuilder.optionalArg = true;
265265

266-
return instance;
266+
return INSTANCE;
267267
}
268268

269269
/**
@@ -278,7 +278,7 @@ public static OptionBuilder hasOptionalArgs(int numArgs)
278278
OptionBuilder.numberOfArgs = numArgs;
279279
OptionBuilder.optionalArg = true;
280280

281-
return instance;
281+
return INSTANCE;
282282
}
283283

284284
/**
@@ -310,7 +310,7 @@ public static OptionBuilder withType(Class<?> newType)
310310
{
311311
OptionBuilder.type = newType;
312312

313-
return instance;
313+
return INSTANCE;
314314
}
315315

316316
/**
@@ -323,7 +323,7 @@ public static OptionBuilder withDescription(String newDescription)
323323
{
324324
OptionBuilder.description = newDescription;
325325

326-
return instance;
326+
return INSTANCE;
327327
}
328328

329329
/**

0 commit comments

Comments
 (0)