Skip to content

Commit

Permalink
Simplify some code (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyifan0528 committed Mar 26, 2021
1 parent 5807037 commit 1357b42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public static class ViewSettings {
/**
* Set view enabled.
*/
private boolean enabled = true;
private boolean enabled;

public ViewSettings(String name, boolean enabled) {
Assert.hasText(name, "'name' must not be empty");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ private static Map<String, Object> convertMappingConditions(String predicate) {

// All detail values in SB1.x are in form of 'str1 || str2' so we split
// them on ' || '
List<Object> conditionValue = Arrays.asList((Object[]) conditionValueStr.split(" \\|\\| "));
List<Object> conditionValue = Arrays.asList(conditionValueStr.split(" \\|\\| "));

// Based on conditionKey we may need to apply some transformations,
// mostly wrapping, of the input values
Expand Down

0 comments on commit 1357b42

Please sign in to comment.