Skip to content

Commit 5ac3c5f

Browse files
committed
Merge branch 'develop' of https://github.com/blobcity/db into develop
2 parents 9f43ef5 + f64f176 commit 5ac3c5f

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

engine/pom.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
146146
<dependency>
147147
<groupId>commons-io</groupId>
148148
<artifactId>commons-io</artifactId>
149-
<!--<version>2.5</version>-->
150149
<version>2.6</version>
151150
</dependency>
152151
<!--<dependency>-->
@@ -274,7 +273,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
274273
<dependency>
275274
<groupId>org.apache.tika</groupId>
276275
<artifactId>tika-core</artifactId>
277-
<version>1.18</version>
276+
<version>[1.20,)</version>
277+
<exclusions>
278+
<exclusion>
279+
<groupId>commons-io</groupId>
280+
<artifactId>commons-io</artifactId>
281+
</exclusion>
282+
</exclusions>
278283
</dependency>
279284

280285
<!-- https://mvnrepository.com/artifact/org.apache.tika/tika-parsers -->
@@ -570,6 +575,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
570575
<groupId>com.google.http-client</groupId>
571576
<artifactId>google-http-client</artifactId>
572577
</exclusion>
578+
<exclusion>
579+
<groupId>commons-codec</groupId>
580+
<artifactId>commons-codec</artifactId>
581+
</exclusion>
573582
</exclusions>
574583
</dependency>
575584

engine/src/main/java/com/blobcity/db/code/datainterpreter/InterpreterStoreBean.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import com.blobcity.db.annotations.Interpreter;
2020
import com.blobcity.db.code.LoaderStore;
2121
import com.blobcity.db.code.ManifestParserBean;
22-
import com.blobcity.db.code.RestrictedClassLoader;
2322
import com.blobcity.db.exceptions.ErrorCode;
2423
import com.blobcity.db.exceptions.OperationException;
2524
import com.blobcity.db.sp.interpreter.DataInterpretable;
@@ -29,9 +28,6 @@
2928
import java.util.HashMap;
3029
import java.util.List;
3130
import java.util.Map;
32-
import javax.annotation.PostConstruct;
33-
34-
import com.blobcity.db.sp.annotations.Rest;
3531
import org.slf4j.Logger;
3632
import org.slf4j.LoggerFactory;
3733
import org.springframework.beans.factory.annotation.Autowired;
@@ -158,14 +154,13 @@ public void loadClass(final String datastore, final Class clazz) throws Operatio
158154
for(int i=0; i < annotations.length; i++) {
159155
Annotation annotation = annotations[i];
160156
if(annotation.annotationType().equals(Interpreter.class)) {
161-
logger.trace("Found the @Interpreter annotation: " + annotation.toString());
162157
interpreterAnnotation = annotation;
163158
}
164159
}
165160

166161
if(interpreterAnnotation == null) {
167-
logger.warn("Cannot process Interpreter class as @Interpreter annotation was missing");
168-
throw new OperationException(ErrorCode.CODE_LOAD_ERROR, "Missing @Interpreter annotation on a DataInterpreter implementation");
162+
logger.warn("Cannot process Interpreter class as @DataInterpreter annotation was missing");
163+
throw new OperationException(ErrorCode.CODE_LOAD_ERROR, "Missing @DataInterpreter annotation on a DataInterpreter implementation");
169164
}
170165

171166
Interpreter annotation = (Interpreter) interpreterAnnotation;

0 commit comments

Comments
 (0)