Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions codestyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,10 @@
<property name="illegalPattern" value="true"/>
<property name="message" value="Use Comparators.naturalNullsFirst() instead of Ordering.natural().nullsFirst()"/>
</module>
<module name="Regexp">
<property name="format" value="(Byte|Character|Short|Integer|Long|Float|Double)\.TYPE"/>
<property name="illegalPattern" value="true"/>
<property name="message" value="Use primitive.class instead. But check twice that you don't actually need BoxedPrimitive.class instead of BoxedPrimitive.TYPE"/>
</module>
</module>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ public ObjectColumnSelector makeObjectColumnSelector(String column)
@Override
public Class classOfObject()
{
return Float.TYPE;
return Float.class;
}

@Override
Expand All @@ -685,7 +685,7 @@ public Float get()
@Override
public Class classOfObject()
{
return Long.TYPE;
return Long.class;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,9 @@ public Class getMetricClass(String metric)
case COMPLEX:
return ComplexMetrics.getSerdeForType(metricDesc.getType()).getObjectStrategy().getClazz();
case FLOAT:
return Float.TYPE;
return Float.class;
case LONG:
return Long.TYPE;
return Long.class;
case STRING:
return String.class;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ public ObjectColumnSelector makeObjectColumnSelector(String column)
@Override
public Class classOfObject()
{
return Long.TYPE;
return Long.class;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static ObjectColumnSelector<Float> wrap(final FloatColumnSelector selecto
@Override
public Class<Float> classOfObject()
{
return Float.TYPE;
return Float.class;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,11 @@ public void testConcurrentAddRead()

final IncrementalIndex incrementalIndex = this.incrementalIndex.getConstructor(
IncrementalIndexSchema.class,
Boolean.TYPE,
Boolean.TYPE,
Boolean.TYPE,
Boolean.TYPE,
Integer.TYPE
boolean.class,
boolean.class,
boolean.class,
boolean.class,
int.class
).newInstance(
new IncrementalIndexSchema.Builder().withMetrics(factories).build(),
true,
Expand Down