Commits

David Chui committed 9af28bf

Fixed compilation errors against 3.0-SNAPSHOT. Plugins is now compatible with only Confluence >= 3.0.

Comments (0)

Files changed (2)

 
     <properties>
         <atlassian.plugin.key>com.atlassian.confluence.contributors</atlassian.plugin.key>
-        <atlassian.plugin.application.version.min>2.9</atlassian.plugin.application.version.min>
-        <atlassian.plugin.application.version.max>2.10</atlassian.plugin.application.version.max>
+        <atlassian.plugin.application.version.min>3.0</atlassian.plugin.application.version.min>
+        <atlassian.plugin.application.version.max>3.0</atlassian.plugin.application.version.max>
 
-        <atlassian.product.version>2.10-m5</atlassian.product.version>
+        <atlassian.product.version>3.0-SNAPSHOT</atlassian.product.version>
+        <atlassian.product.data.version>3.0-SNAPSHOT</atlassian.product.data.version>
         <atlassian.product.test-lib.version>1.4.2-SNAPSHOT</atlassian.product.test-lib.version>
 
         <confluence.jars.to.remove.regex.list>${basedir}/src/test/resources/jar-files-to-remove-from-bundle.txt</confluence.jars.to.remove.regex.list>

src/main/java/com/atlassian/confluence/contributors/util/PageDetailsHelper.java

     {
         luceneConnection.withSearch(new LuceneConnection.SearcherAction()
         {
-            public boolean perform(final IndexSearcher indexSearcher) throws IOException
+            public void perform(final IndexSearcher indexSearcher) throws IOException
             {
                 indexSearcher.search(
                         new TermQuery(new Term("handle", new HibernateHandle(abstractPage).toString())),
                             }
                         }
                 );
-
-                return true;
             }
         });
 	}
     {
         luceneConnection.withSearch(new LuceneConnection.SearcherAction()
         {
-            public boolean perform(final IndexSearcher indexSearcher) throws IOException
+            public void perform(final IndexSearcher indexSearcher) throws IOException
             {
                 indexSearcher.search(
                         new TermQuery(new Term(CommentContributionExtractor.CONTAINING_PAGE_ID, abstractPage.getIdAsString())),
                             }
                         }
                 );
-
-                return true;
             }
         });
 	}
     {
         luceneConnection.withSearch(new LuceneConnection.SearcherAction()
         {
-            public boolean perform(final IndexSearcher indexSearcher) throws IOException
+            public void perform(final IndexSearcher indexSearcher) throws IOException
             {
                 indexSearcher.search(
                         new TermQuery(new Term("handle", new HibernateHandle(abstractPage).toString())),
                             }
                         }
                 );
-
-                return true;
             }
         });
 	}
             final int groupingType) {
         luceneConnection.withSearch(new LuceneConnection.SearcherAction()
         {
-            public boolean perform(final IndexSearcher indexSearcher) throws IOException
+            public void perform(final IndexSearcher indexSearcher) throws IOException
             {
                 final BooleanQuery booleanQuery = new BooleanQuery();
 
                             }
                         }
                 );
-
-                return true;
             }
         });
     }