+ "returning Map or Map<String,String>");
}
}
if (intValue != null) {
constantsCount++;
JPrimitiveType primType = returnType.isPrimitive();
if (primType != JPrimitiveType.INT) {
throw new AnnotationsError(
"@DefaultIntValue can only be used with a method returning int");
}
}
if (floatValue != null) {
constantsCount++;
JPrimitiveType primType = returnType.isPrimitive();
if (primType != JPrimitiveType.FLOAT) {
throw new AnnotationsError(
"@DefaultFloatValue can only be used with a method returning float");
}
}
if (doubleValue != null) {
constantsCount++;
JPrimitiveType primType = returnType.isPrimitive();
if (primType != JPrimitiveType.DOUBLE) {
throw new AnnotationsError(
"@DefaultDoubleValue can only be used with a method returning double");
}
}
if (booleanValue != null) {
constantsCount++;
JPrimitiveType primType = returnType.isPrimitive();
if (primType != JPrimitiveType.BOOLEAN) {
throw new AnnotationsError(
"@DefaultBooleanValue can only be used with a method returning boolean");
}
}