Skip to content

Commit 31d9256

Browse files
committed
Fix clirr error: return type of a public static method has changed from Object to Class.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1439987 13f79535-47bb-0310-9956-ffa450edef68
1 parent 461ff93 commit 31d9256

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public class PatternOptionBuilder
9191
* @param ch the specified character
9292
* @return The class that <code>ch</code> represents
9393
*/
94-
public static Class getValueClass(char ch)
94+
public static Object getValueClass(char ch)
9595
{
9696
switch (ch)
9797
{
@@ -149,7 +149,7 @@ public static Options parsePattern(String pattern)
149149
{
150150
char opt = ' ';
151151
boolean required = false;
152-
Class type = null;
152+
Class<?> type = null;
153153

154154
Options options = new Options();
155155

@@ -182,7 +182,7 @@ else if (ch == '!')
182182
}
183183
else
184184
{
185-
type = getValueClass(ch);
185+
type = (Class<?>) getValueClass(ch);
186186
}
187187
}
188188

0 commit comments

Comments
 (0)