Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public <T> ArrayList<T> getClaimValues(String propertyName, Class<T> cls) {
return null;
} else {
if (Set.class.isInstance(claimValue)) {
Set retval = ((Set) claimValue);
Set retval = (Set) claimValue;
ArrayList<T> array = new ArrayList<>();
for (Object o : retval) {
array.add(castValue(o, cls));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public FeedFormatter(HttpServletRequest request, WebRequestContext context) {
* @return whether a field is a list
*/
private static boolean isList(SemanticEntity annotation) {
return (annotation.vocabulary().equals(SemanticVocabulary.SCHEMA_ORG) && annotation.entityName().equals("ItemList"));
return annotation.vocabulary().equals(SemanticVocabulary.SCHEMA_ORG) && annotation.entityName().equals("ItemList");

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public HtmlElement toHtmlElement(String widthFactor, double aspect, String cssCl
return img(getMediaHelper().getResponsiveImageUrl(getUrl(), widthFactor, aspect, containerSize))
.withAlt(this.alternateText)
.withClass(cssClass)
.withAttribute("data-aspect", String.valueOf((Math.round(aspect * 100) / 100)))
.withAttribute("data-aspect", String.valueOf(Math.round(aspect * 100) / 100))
.withAttribute("width", widthFactor)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public Class<? extends EntityModel> getEntityClassByFullyQualifiedName(String en
}
}
}
if (possibleValues.size() > 0) {
if (!possibleValues.isEmpty()) {
for (Class<? extends EntityModel> cls : possibleValues) {
if (cls.getSimpleName().equals(entityNameSplit[entityNameSplit.length - 1])) {
return cls;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public int doStartTag() throws JspException {
StringBuilder builder = new StringBuilder(2048);
try {
for (RichTextFragment fragment : content.getFragments()) {
EntityModel entityModel = (fragment instanceof EntityModel ? (EntityModel) fragment : null);
EntityModel entityModel = fragment instanceof EntityModel ? (EntityModel) fragment : null;
String htmlFragment;
if (entityModel == null) {
htmlFragment = fragment.toHtmlElement().toHtml();
Expand Down