click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From take...@apache.org
Subject svn commit: r795924 - in /incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist: FieldAssistUtils.java PackageNameContentProposalProvider.java TypeNameContentProposalProvider.java
Date Mon, 20 Jul 2009 17:11:49 GMT
Author: takezoe
Date: Mon Jul 20 17:11:49 2009
New Revision: 795924

URL: http://svn.apache.org/viewvc?rev=795924&view=rev
Log:
Fixed warnings.

Modified:
    incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/FieldAssistUtils.java
    incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/PackageNameContentProposalProvider.java
    incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/TypeNameContentProposalProvider.java

Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/FieldAssistUtils.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/FieldAssistUtils.java?rev=795924&r1=795923&r2=795924&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/FieldAssistUtils.java
(original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/FieldAssistUtils.java
Mon Jul 20 17:11:49 2009
@@ -40,7 +40,8 @@
  */
 public class FieldAssistUtils {
 	
-	private static HashMap unitMap = new HashMap();
+	private static HashMap<IJavaProject, ICompilationUnit> 
+		unitMap = new HashMap<IJavaProject, ICompilationUnit>();
 	
 	/**
 	 * Set contents of the compilation unit to the translated jsp text.
@@ -79,7 +80,7 @@
 			IJavaProject project) throws JavaModelException {
 		
 		if(unitMap.get(project) != null){
-			return (ICompilationUnit)unitMap.get(project);
+			return unitMap.get(project);
 		}
 		
 		IPackageFragment root = project.getPackageFragments()[0];

Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/PackageNameContentProposalProvider.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/PackageNameContentProposalProvider.java?rev=795924&r1=795923&r2=795924&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/PackageNameContentProposalProvider.java
(original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/PackageNameContentProposalProvider.java
Mon Jul 20 17:11:49 2009
@@ -64,7 +64,7 @@
 			FieldAssistUtils.setContentsToCU(unit, source);
 			unit.codeComplete(source.length(), collector, DefaultWorkingCopyOwner.PRIMARY);
 			IJavaCompletionProposal[] proposals = collector.getJavaCompletionProposals();
-			List result = new ArrayList();
+			List<IContentProposal> result = new ArrayList<IContentProposal>();
 			
 			for(int j=0;j<proposals.length;j++){
 				if(proposals[j].getImage()!=null){
@@ -82,7 +82,7 @@
 				}
 			}
 			
-			return (IContentProposal[])result.toArray(new IContentProposal[result.size()]);
+			return result.toArray(new IContentProposal[result.size()]);
 			
 		} catch(Exception ex){
 			ex.printStackTrace();

Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/TypeNameContentProposalProvider.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/TypeNameContentProposalProvider.java?rev=795924&r1=795923&r2=795924&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/TypeNameContentProposalProvider.java
(original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/fieldassist/TypeNameContentProposalProvider.java
Mon Jul 20 17:11:49 2009
@@ -62,7 +62,7 @@
 			FieldAssistUtils.setContentsToCU(unit, source);
 			unit.codeComplete(source.length() - 2, collector, DefaultWorkingCopyOwner.PRIMARY);
 			IJavaCompletionProposal[] proposals = collector.getJavaCompletionProposals();
-			List result = new ArrayList();
+			List<IContentProposal> result = new ArrayList<IContentProposal>();
 			
 			for(int j=0;j<proposals.length;j++){
 				if(proposals[j].getImage()!=null){
@@ -80,7 +80,7 @@
 				}
 			}
 			
-			return (IContentProposal[])result.toArray(new IContentProposal[result.size()]);
+			return result.toArray(new IContentProposal[result.size()]);
 			
 		} catch(Exception ex){
 			ex.printStackTrace();



Mime
View raw message