Skip to content

Commit e430cd4

Browse files
committed
Explicit type defs can be removed
1 parent 9f903ad commit e430cd4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

exist-core/src/main/java/org/exist/client/security/EditPropertiesDialog.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ private void initComponents() {
190190
tblBasePermissions = new javax.swing.JTable();
191191
if (applyTo.size() > 1) {
192192
tblBasePermissions.setDefaultRenderer(Boolean.class, new TristateCheckBoxTableCellRenderer<Boolean>(bool -> Tuple(null, TristateState.fromBoolean(bool))));
193-
tblBasePermissions.setDefaultEditor(Boolean.class, new TristateCheckboxTableCellEditor<Boolean>(bool -> Tuple(null, TristateState.fromBoolean(bool)), state -> TristateState.toBoolean(state._2)));
193+
tblBasePermissions.setDefaultEditor(Boolean.class, new TristateCheckboxTableCellEditor<>(bool -> Tuple(null, TristateState.fromBoolean(bool)), state -> TristateState.toBoolean(state._2)));
194194
tblBasePermissions.setDefaultRenderer(LabelledBoolean.class, new TristateCheckBoxTableCellRenderer<LabelledBoolean>(labelledBool -> Tuple(labelledBool.getLabel(), TristateState.fromBoolean(labelledBool.isSet()))));
195-
tblBasePermissions.setDefaultEditor(LabelledBoolean.class, new TristateCheckboxTableCellEditor<LabelledBoolean>(labelledBool -> Tuple(labelledBool.getLabel(), TristateState.fromBoolean(labelledBool.isSet())), state -> new LabelledBoolean(state._1, TristateState.toBoolean(state._2))));
195+
tblBasePermissions.setDefaultEditor(LabelledBoolean.class, new TristateCheckboxTableCellEditor<>(labelledBool -> Tuple(labelledBool.getLabel(), TristateState.fromBoolean(labelledBool.isSet())), state -> new LabelledBoolean(state._1, TristateState.toBoolean(state._2))));
196196
} else {
197197
tblBasePermissions.setDefaultRenderer(LabelledBoolean.class, new CheckboxTableCellRenderer<LabelledBoolean>(labelledBoolean -> Tuple(labelledBoolean.getLabel(), labelledBoolean.isSet())));
198-
tblBasePermissions.setDefaultEditor(LabelledBoolean.class, new CheckboxTableCellEditor<LabelledBoolean>(labelledBoolean -> Tuple(labelledBoolean.getLabel(), labelledBoolean.isSet()), state -> new LabelledBoolean(state._1, state._2)));
198+
tblBasePermissions.setDefaultEditor(LabelledBoolean.class, new CheckboxTableCellEditor<>(labelledBoolean -> Tuple(labelledBoolean.getLabel(), labelledBoolean.isSet()), state -> new LabelledBoolean(state._1, state._2)));
199199
}
200200
lblAccessControlList = new javax.swing.JLabel();
201201
jSeparator1 = new javax.swing.JSeparator();

exist-core/src/main/java/org/exist/client/security/FindUserForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private boolean isValidUsername(final String username) {
166166

167167
private ComboBoxModel<String> getUsernameModel() {
168168
if(usernameModel == null) {
169-
usernameModel = new DefaultComboBoxModel<String>();
169+
usernameModel = new DefaultComboBoxModel<>();
170170
usernameModel.addElement("");
171171
for(final String username : allUsernames) {
172172
usernameModel.addElement(username);

exist-core/src/main/java/org/exist/xquery/functions/fn/FunXmlToJson.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private void nodeValueToJson(final NodeValue nodeValue, final Writer writer) thr
103103
final JsonFactory jsonFactory = new JsonFactory();
104104
final Integer stackSeparator = 0;
105105
//use ArrayList<Object> to store String type keys and non-string type separators
106-
final ArrayList<Object> mapkeyArrayList = new ArrayList<Object>();
106+
final ArrayList<Object> mapkeyArrayList = new ArrayList<>();
107107
boolean elementKeyIsEscaped = false;
108108
boolean elementValueIsEscaped = false;
109109
XMLStreamReader reader = null;

0 commit comments

Comments
 (0)