ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1763668 - /ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/PropertyAeFactory.java
Date Thu, 06 Oct 2016 21:36:25 GMT
Author: seanfinan
Date: Thu Oct  6 21:36:25 2016
New Revision: 1763668

URL: http://svn.apache.org/viewvc?rev=1763668&view=rev
Log:
fixed to use array of multiple Objects

Modified:
    ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/PropertyAeFactory.java

Modified: ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/PropertyAeFactory.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/PropertyAeFactory.java?rev=1763668&r1=1763667&r2=1763668&view=diff
==============================================================================
--- ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/PropertyAeFactory.java
(original)
+++ ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/ae/PropertyAeFactory.java
Thu Oct  6 21:36:25 2016
@@ -32,6 +32,7 @@ public enum PropertyAeFactory {
    static private final Logger LOGGER = Logger.getLogger( "PropertyAeFactory" );
 
 
+   // Use a single hashmap so that multiple properties files can be used
    final private Map<String, String> _properties = new HashMap<>();
 
    synchronized public void loadPropertyFile( final String filePath ) {
@@ -92,7 +93,7 @@ public enum PropertyAeFactory {
                                        final Object... parameters )
          throws ResourceInitializationException {
       final AnalysisEngineDescription description = createDescription( classType, parameters
);
-      final Object allParameters = getAllParameters( parameters );
+      final Object[] allParameters = getAllParameters( parameters );
       return AnalysisEngineFactory.createEngine( description, allParameters );
    }
 
@@ -105,7 +106,7 @@ public enum PropertyAeFactory {
    public AnalysisEngineDescription createDescription( final Class<? extends AnalysisComponent>
classType,
                                                        final Object... parameters )
          throws ResourceInitializationException {
-      final Object allParameters = getAllParameters( parameters );
+      final Object[] allParameters = getAllParameters( parameters );
       return AnalysisEngineFactory.createEngineDescription( classType, allParameters );
    }
 
@@ -120,7 +121,7 @@ public enum PropertyAeFactory {
    public AnalysisEngine createLoggedEngine( final Class<? extends AnalysisComponent>
classType,
                                              final Object... parameters )
          throws ResourceInitializationException {
-      final Object allParameters = getAllParameters( parameters );
+      final Object[] allParameters = getAllParameters( parameters );
       return StartFinishLogger.createLoggedEngine( classType, allParameters );
    }
 
@@ -133,7 +134,7 @@ public enum PropertyAeFactory {
    public AnalysisEngineDescription createLoggedDescription( final Class<? extends AnalysisComponent>
classType,
                                                              final Object... parameters )
          throws ResourceInitializationException {
-      final Object allParameters = getAllParameters( parameters );
+      final Object[] allParameters = getAllParameters( parameters );
       return StartFinishLogger.createLoggedDescription( classType, allParameters );
    }
 



Mime
View raw message