lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject [14/48] lucene-solr:jira/lucene-2562: Suppress rawtype warnings.
Date Tue, 17 Jul 2018 21:12:49 GMT
Suppress rawtype warnings.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/559cf274
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/559cf274
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/559cf274

Branch: refs/heads/jira/lucene-2562
Commit: 559cf274e4c29c0f1c1e641df8fe1565fb0be681
Parents: 47f1b74
Author: Tomoko Uchida <tomoko.uchida.1111@gmail.com>
Authored: Sun Jul 15 12:20:24 2018 +0900
Committer: Tomoko Uchida <tomoko.uchida.1111@gmail.com>
Committed: Sun Jul 15 12:58:38 2018 +0900

----------------------------------------------------------------------
 .../app/controllers/dialog/documents/AddDocumentController.java | 4 +++-
 .../app/controllers/dialog/menubar/CheckIndexController.java    | 2 +-
 .../luke/app/controllers/dialog/menubar/OptimizeController.java | 2 +-
 .../lucene/luke/app/controllers/dto/documents/NewField.java     | 5 +++++
 .../luke/app/controllers/fragments/search/SortController.java   | 1 +
 .../org/apache/lucene/luke/models/tools/IndexToolsImpl.java     | 2 ++
 6 files changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/559cf274/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/documents/AddDocumentController.java
----------------------------------------------------------------------
diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/documents/AddDocumentController.java
b/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/documents/AddDocumentController.java
index 1cc1a54..8f6aee4 100644
--- a/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/documents/AddDocumentController.java
+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/documents/AddDocumentController.java
@@ -124,6 +124,7 @@ public class AddDocumentController implements DialogWindowController {
   private TableColumn<NewField, String> nameColumn;
 
   @FXML
+  @SuppressWarnings("rawtypes")
   private TableColumn<NewField, Class> typeColumn;
 
   @FXML
@@ -144,6 +145,7 @@ public class AddDocumentController implements DialogWindowController {
   private TextArea info;
 
   @FXML
+  @SuppressWarnings("rawtypes")
   private void initialize() {
     changeAnalyzer.setOnAction(e -> {
       parent.switchTab(LukeController.Tab.ANALYZER);
@@ -407,7 +409,7 @@ public class AddDocumentController implements DialogWindowController {
     analyzerName.setText(analyzer.getClass().getName());
   }
 
-  @SuppressWarnings("unchecked")
+  @SuppressWarnings({"unchecked", "rawtypes"})
   private static List<Class<? extends Field>> presetFields() {
     final Class[] presetFieldClasses = new Class[]{
         TextField.class, StringField.class,

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/559cf274/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/menubar/CheckIndexController.java
----------------------------------------------------------------------
diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/menubar/CheckIndexController.java
b/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/menubar/CheckIndexController.java
index 47254d7..78effa9 100644
--- a/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/menubar/CheckIndexController.java
+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/menubar/CheckIndexController.java
@@ -182,7 +182,7 @@ public class CheckIndexController implements DialogWindowController {
   private void repairIndex() {
     ExecutorService executor = Executors.newSingleThreadExecutor();
 
-    Task task = new IndexTask<Void>(indicatorPane) {
+    Task<Void> task = new IndexTask<Void>(indicatorPane) {
       @Override
       protected Void call() {
         try {

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/559cf274/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/menubar/OptimizeController.java
----------------------------------------------------------------------
diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/menubar/OptimizeController.java
b/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/menubar/OptimizeController.java
index fdd51d0..177b3cc 100644
--- a/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/menubar/OptimizeController.java
+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dialog/menubar/OptimizeController.java
@@ -117,7 +117,7 @@ public class OptimizeController implements DialogWindowController {
   private void optimize() {
     ExecutorService executor = Executors.newSingleThreadExecutor();
 
-    Task task = new IndexTask<Void>(indicatorPane) {
+    Task<Void> task = new IndexTask<Void>(indicatorPane) {
 
       @Override
       protected Void call() {

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/559cf274/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dto/documents/NewField.java
----------------------------------------------------------------------
diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dto/documents/NewField.java
b/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dto/documents/NewField.java
index dd401e8..963c529 100644
--- a/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dto/documents/NewField.java
+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/dto/documents/NewField.java
@@ -44,6 +44,7 @@ public class NewField {
 
   private String name;
 
+  @SuppressWarnings("rawtypes")
   private ObjectProperty<Class> typeProperty;
 
   private Hyperlink option;
@@ -89,14 +90,17 @@ public class NewField {
     this.name = name;
   }
 
+  @SuppressWarnings("rawtypes")
   public ObjectProperty<Class> getTypeProperty() {
     return typeProperty;
   }
 
+  @SuppressWarnings("rawtypes")
   public Class getType() {
     return typeProperty.get();
   }
 
+  @SuppressWarnings("rawtypes")
   public void setType(Class type) {
     this.typeProperty.set(type);
   }
@@ -105,6 +109,7 @@ public class NewField {
     return option;
   }
 
+  @SuppressWarnings("rawtypes")
   public void resetFieldType(Class type) {
     if (type.equals(TextField.class)) {
       fieldType = new TextField("", "", Field.Store.NO).fieldType();

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/559cf274/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/fragments/search/SortController.java
----------------------------------------------------------------------
diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/fragments/search/SortController.java
b/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/fragments/search/SortController.java
index 6377f9f..e0f5a69 100644
--- a/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/fragments/search/SortController.java
+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/controllers/fragments/search/SortController.java
@@ -181,6 +181,7 @@ public class SortController {
     return new Sort(li.toArray(new SortField[li.size()]));
   }
 
+  @SuppressWarnings("rawtypes")
   private boolean isReverse(ChoiceBox order) {
     return Order.valueOf(order.getValue().toString()) == Order.DESC;
   }

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/559cf274/lucene/luke/src/java/org/apache/lucene/luke/models/tools/IndexToolsImpl.java
----------------------------------------------------------------------
diff --git a/lucene/luke/src/java/org/apache/lucene/luke/models/tools/IndexToolsImpl.java
b/lucene/luke/src/java/org/apache/lucene/luke/models/tools/IndexToolsImpl.java
index 510ea89..4e70dda 100644
--- a/lucene/luke/src/java/org/apache/lucene/luke/models/tools/IndexToolsImpl.java
+++ b/lucene/luke/src/java/org/apache/lucene/luke/models/tools/IndexToolsImpl.java
@@ -54,6 +54,8 @@ public final class IndexToolsImpl extends LukeModel implements IndexTools
{
 
   private final boolean keepAllCommits;
 
+
+  @SuppressWarnings("rawtypes")
   private static final Class[] presetFieldClasses = new Class[]{
       TextField.class, StringField.class,
       IntPoint.class, LongPoint.class, FloatPoint.class, DoublePoint.class,


Mime
View raw message