WIP.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/7d97f3d4 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/7d97f3d4 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/7d97f3d4 Branch: refs/heads/ignite-3949 Commit: 7d97f3d416c1b9abf3cc1555cd80673929437768 Parents: 0b3b329 Author: vozerov-gridgain <voze...@gridgain.com> Authored: Wed Sep 21 14:45:21 2016 +0300 Committer: vozerov-gridgain <voze...@gridgain.com> Committed: Wed Sep 21 14:45:21 2016 +0300 ---------------------------------------------------------------------- .../processors/hadoop/HadoopClassLoader.java | 6 +- .../hadoop/impl/HadoopClassLoaderTest.java | 112 ------------------- .../hadoop/impl/HadoopCommandLineTest.java | 2 +- .../hadoop/impl/HadoopFileSystemsTest.java | 2 +- .../hadoop/impl/HadoopV2JobSelfTest.java | 6 +- .../hadoop/impl/deps/CircularWIthHadoop.java | 32 ------ .../hadoop/impl/deps/CircularWithoutHadoop.java | 27 ----- .../processors/hadoop/impl/deps/WithCast.java | 41 ------- .../hadoop/impl/deps/WithClassAnnotation.java | 28 ----- .../impl/deps/WithConstructorInvocation.java | 31 ----- .../hadoop/impl/deps/WithExtends.java | 27 ----- .../processors/hadoop/impl/deps/WithField.java | 29 ----- .../hadoop/impl/deps/WithImplements.java | 36 ------ .../hadoop/impl/deps/WithIndirectField.java | 27 ----- .../hadoop/impl/deps/WithInitializer.java | 33 ------ .../hadoop/impl/deps/WithInnerClass.java | 31 ----- .../hadoop/impl/deps/WithLocalVariable.java | 38 ------- .../hadoop/impl/deps/WithMethodAnnotation.java | 32 ------ .../hadoop/impl/deps/WithMethodArgument.java | 31 ----- .../impl/deps/WithMethodCheckedException.java | 31 ----- .../hadoop/impl/deps/WithMethodInvocation.java | 31 ----- .../hadoop/impl/deps/WithMethodReturnType.java | 31 ----- .../impl/deps/WithMethodRuntimeException.java | 31 ----- .../hadoop/impl/deps/WithOuterClass.java | 38 ------- .../impl/deps/WithParameterAnnotation.java | 31 ----- .../hadoop/impl/deps/WithStaticField.java | 29 ----- .../hadoop/impl/deps/WithStaticInitializer.java | 34 ------ .../processors/hadoop/impl/deps/Without.java | 25 ----- .../testsuites/IgniteHadoopTestSuite.java | 3 - 29 files changed, 7 insertions(+), 848 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/core/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopClassLoader.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopClassLoader.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopClassLoader.java index 51ec4ab..8304ea1 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopClassLoader.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopClassLoader.java @@ -287,10 +287,8 @@ public class HadoopClassLoader extends URLClassLoader implements ClassCache { } // For Ignite Hadoop and IGFS classes we have to check if they depend on Hadoop. - if (helper.isHadoopIgfs(name)) { - if (hasExternalDependencies(name)) - return loadClassExplicitly(name, resolve); - } + if (loadByCurrentClassloader(name)) + return loadClassExplicitly(name, resolve); return super.loadClass(name, resolve); } http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopClassLoaderTest.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopClassLoaderTest.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopClassLoaderTest.java deleted file mode 100644 index 9400bc2..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopClassLoaderTest.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl; - -import javax.security.auth.AuthPermission; -import junit.framework.TestCase; -import org.apache.hadoop.conf.Configuration; -import org.apache.ignite.internal.processors.hadoop.HadoopClassLoader; -import org.apache.ignite.internal.processors.hadoop.HadoopHelperImpl; -import org.apache.ignite.internal.processors.hadoop.impl.deps.CircularWIthHadoop; -import org.apache.ignite.internal.processors.hadoop.impl.deps.CircularWithoutHadoop; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithIndirectField; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithCast; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithClassAnnotation; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithConstructorInvocation; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithMethodCheckedException; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithMethodRuntimeException; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithExtends; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithField; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithImplements; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithInitializer; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithInnerClass; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithLocalVariable; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithMethodAnnotation; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithMethodInvocation; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithMethodArgument; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithMethodReturnType; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithOuterClass; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithParameterAnnotation; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithStaticField; -import org.apache.ignite.internal.processors.hadoop.impl.deps.WithStaticInitializer; -import org.apache.ignite.internal.processors.hadoop.impl.deps.Without; - -/** - * Tests for Hadoop classloader. - */ -public class HadoopClassLoaderTest extends TestCase { - /** */ - final HadoopClassLoader ldr = new HadoopClassLoader(null, "test", null, new HadoopHelperImpl()); - - /** - * @throws Exception If failed. - */ - public void testClassLoading() throws Exception { - assertNotSame(CircularWIthHadoop.class, ldr.loadClass(CircularWIthHadoop.class.getName())); - assertNotSame(CircularWithoutHadoop.class, ldr.loadClass(CircularWithoutHadoop.class.getName())); - - assertSame(Without.class, ldr.loadClass(Without.class.getName())); - } - - /** - * Test dependency search. - */ - public void testDependencySearch() { - // Positive cases: - final Class[] positiveClasses = { - Configuration.class, - HadoopUtils.class, - WithStaticField.class, - WithCast.class, - WithClassAnnotation.class, - WithConstructorInvocation.class, - WithMethodCheckedException.class, - WithMethodRuntimeException.class, - WithExtends.class, - WithField.class, - WithImplements.class, - WithInitializer.class, - WithInnerClass.class, - WithOuterClass.InnerNoHadoop.class, - WithLocalVariable.class, - WithMethodAnnotation.class, - WithMethodInvocation.class, - WithMethodArgument.class, - WithMethodReturnType.class, - WithParameterAnnotation.class, - WithStaticField.class, - WithStaticInitializer.class, - WithIndirectField.class, - CircularWIthHadoop.class, - CircularWithoutHadoop.class, - }; - - for (Class c : positiveClasses) - assertTrue(c.getName(), ldr.hasExternalDependencies(c.getName())); - - // Negative cases: - final Class[] negativeClasses = { - Object.class, - AuthPermission.class, - Without.class, - }; - - for (Class c : negativeClasses) - assertFalse(c.getName(), ldr.hasExternalDependencies(c.getName())); - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopCommandLineTest.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopCommandLineTest.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopCommandLineTest.java index 3c42bc2..3938da4 100644 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopCommandLineTest.java +++ b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopCommandLineTest.java @@ -38,7 +38,7 @@ import org.apache.ignite.igfs.IgfsInputStream; import org.apache.ignite.igfs.IgfsPath; import org.apache.ignite.internal.IgnitionEx; import org.apache.ignite.internal.processors.hadoop.HadoopJob; -import org.apache.ignite.internal.processors.hadoop.jobtracker.HadoopJobTracker; +import org.apache.ignite.internal.processors.hadoop.impl.jobtracker.HadoopJobTracker; import org.apache.ignite.internal.processors.igfs.IgfsEx; import org.apache.ignite.internal.processors.resource.GridSpringResourceContext; import org.apache.ignite.internal.util.typedef.F; http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopFileSystemsTest.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopFileSystemsTest.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopFileSystemsTest.java index 1794a95..252d6cb 100644 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopFileSystemsTest.java +++ b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopFileSystemsTest.java @@ -25,7 +25,7 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapreduce.MRJobConfig; -import org.apache.ignite.internal.processors.hadoop.fs.HadoopFileSystemsUtils; +import org.apache.ignite.internal.processors.hadoop.impl.fs.HadoopFileSystemsUtils; import org.apache.ignite.testframework.GridTestUtils; /** http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopV2JobSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopV2JobSelfTest.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopV2JobSelfTest.java index 694af9b..1d0362a 100644 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopV2JobSelfTest.java +++ b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/HadoopV2JobSelfTest.java @@ -37,13 +37,13 @@ import org.apache.ignite.internal.processors.hadoop.HadoopTaskContext; import org.apache.ignite.internal.processors.hadoop.HadoopTaskInfo; import org.apache.ignite.internal.processors.hadoop.HadoopTaskType; import org.apache.ignite.internal.processors.hadoop.HadoopHelperImpl; -import org.apache.ignite.internal.processors.hadoop.v2.HadoopSerializationWrapper; -import org.apache.ignite.internal.processors.hadoop.v2.HadoopV2Job; +import org.apache.ignite.internal.processors.hadoop.impl.v2.HadoopSerializationWrapper; +import org.apache.ignite.internal.processors.hadoop.impl.v2.HadoopV2Job; import static org.apache.ignite.internal.processors.hadoop.impl.HadoopUtils.createJobInfo; /** - * Self test of {@link org.apache.ignite.internal.processors.hadoop.v2.HadoopV2Job}. + * Self test of {@link org.apache.ignite.internal.processors.hadoop.impl.v2.HadoopV2Job}. */ public class HadoopV2JobSelfTest extends HadoopAbstractSelfTest { /** */ http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/CircularWIthHadoop.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/CircularWIthHadoop.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/CircularWIthHadoop.java deleted file mode 100644 index 25aef42..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/CircularWIthHadoop.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.mapreduce.Job; - -/** - * Class has a direct Hadoop dependency and a circular dependency on another class. - */ -@SuppressWarnings("unused") -public class CircularWIthHadoop { - /** */ - private Job[][] jobs = new Job[4][4]; - - /** */ - private CircularWithoutHadoop y; -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/CircularWithoutHadoop.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/CircularWithoutHadoop.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/CircularWithoutHadoop.java deleted file mode 100644 index a20cda9..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/CircularWithoutHadoop.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -/** - * Does not have direct Hadoop dependency, but has a circular - */ -@SuppressWarnings("unused") -public class CircularWithoutHadoop { - /** */ - private CircularWIthHadoop x; -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithCast.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithCast.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithCast.java deleted file mode 100644 index cf800b5..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithCast.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.fs.FileSystem; - -/** - * Class contains casting to a Hadoop type. - */ -@SuppressWarnings("unused") -public abstract class WithCast<T> { - /** */ - public abstract T create(); - - /** */ - public void consume(T t) { - // noop - } - - /** */ - void test(WithCast<FileSystem> c) { - FileSystem fs = c.create(); - - c.consume(fs); - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithClassAnnotation.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithClassAnnotation.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithClassAnnotation.java deleted file mode 100644 index b005448..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithClassAnnotation.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.classification.InterfaceAudience; - -/** - * Class has Hadoop annotation. - */ -@SuppressWarnings("unused") -@InterfaceAudience.Public -public class WithClassAnnotation { -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithConstructorInvocation.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithConstructorInvocation.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithConstructorInvocation.java deleted file mode 100644 index 2ca978b..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithConstructorInvocation.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.conf.Configuration; - -/** - * Invokes a Hadoop type constructor. - */ -@SuppressWarnings("unused") -public class WithConstructorInvocation { - /** */ - private void foo() { - Object x = new Configuration(); - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithExtends.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithExtends.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithExtends.java deleted file mode 100644 index a0c659d..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithExtends.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.fs.LocalFileSystem; - -/** - * Class extends a Hadoop class. - */ -public class WithExtends extends LocalFileSystem { - // noop -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithField.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithField.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithField.java deleted file mode 100644 index 59c3218..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithField.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.conf.Configuration; - -/** - * Has a Hadoop field. - */ -@SuppressWarnings("unused") -public class WithField { - /** */ - private Configuration conf; -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithImplements.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithImplements.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithImplements.java deleted file mode 100644 index 4309170..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithImplements.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.conf.Configurable; -import org.apache.hadoop.conf.Configuration; - -/** - * Implements a Hadoop interface. - */ -public class WithImplements implements Configurable { - /** {@inheritDoc} */ - @Override public void setConf(Configuration conf) { - // noop - } - - /** {@inheritDoc} */ - @Override public Configuration getConf() { - return null; - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithIndirectField.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithIndirectField.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithIndirectField.java deleted file mode 100644 index b4b246c..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithIndirectField.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -/** - * Has a unidirected dependency on Hadoop-dependent class. - */ -@SuppressWarnings("unused") -public class WithIndirectField { - /** */ - WithField x; -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithInitializer.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithInitializer.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithInitializer.java deleted file mode 100644 index 7225254..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithInitializer.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -/** - * Has a field initialized with an expression invoking Hadoop method. - */ - -@SuppressWarnings({"ConstantConditions", "unused"}) -public class WithInitializer { - /** */ - private final Object x = org.apache.hadoop.fs.FileSystem.getDefaultUri(null); - - /** */ - WithInitializer() throws Exception { - // noop - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithInnerClass.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithInnerClass.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithInnerClass.java deleted file mode 100644 index 5c12357..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithInnerClass.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.conf.Configurable; - -/** - * Has a *static* inner class depending on Hadoop. - */ -@SuppressWarnings("unused") -public class WithInnerClass { - /** */ - private static abstract class Foo implements Configurable { - // No-op. - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithLocalVariable.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithLocalVariable.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithLocalVariable.java deleted file mode 100644 index dde3cf7..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithLocalVariable.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.conf.Configuration; - -/** - * Has a local variable of Hadoop type. - */ -@SuppressWarnings({"unused", "ConstantConditions"}) -public class WithLocalVariable { - /** */ - void foo() { - Configuration c = null; - - moo(c); - } - - /** */ - void moo(Object x) { - - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodAnnotation.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodAnnotation.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodAnnotation.java deleted file mode 100644 index 8fe6786..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodAnnotation.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.classification.InterfaceStability; - -/** - * Method has a Hadoop annotation. - */ -@SuppressWarnings("unused") -public class WithMethodAnnotation { - /** */ - @InterfaceStability.Unstable - void foo() { - // No-op. - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodArgument.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodArgument.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodArgument.java deleted file mode 100644 index 53a940a..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodArgument.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.conf.Configuration; - -/** - * Contains a formal parameter of Hadoop type. - */ -@SuppressWarnings("unused") -public class WithMethodArgument { - /** */ - protected void paramaterMethod(Configuration c) { - // No-op. - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodCheckedException.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodCheckedException.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodCheckedException.java deleted file mode 100644 index a1637c4..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodCheckedException.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.fs.ChecksumException; - -/** - * Method declares a checked Hadoop Exception. - */ -@SuppressWarnings("unused") -public class WithMethodCheckedException { - /** */ - void foo() throws ChecksumException { - // No-op. - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodInvocation.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodInvocation.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodInvocation.java deleted file mode 100644 index e37200c..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodInvocation.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.fs.FileSystem; - -/** - * Method contains a Hadoop type method invocation. - */ -@SuppressWarnings("unused") -public class WithMethodInvocation { - /** */ - void foo(FileSystem fs) { - fs.getChildFileSystems(); - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodReturnType.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodReturnType.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodReturnType.java deleted file mode 100644 index 5c04ed6..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodReturnType.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.fs.FileSystem; - -/** - * Contains a method return value of Hadoop type. - */ -@SuppressWarnings("unused") -public class WithMethodReturnType { - /** */ - FileSystem fsMethod() { - return null; - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodRuntimeException.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodRuntimeException.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodRuntimeException.java deleted file mode 100644 index 895d494..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithMethodRuntimeException.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.HadoopIllegalArgumentException; - -/** - * Method declares a runtime Hadoop Exception. - */ -@SuppressWarnings("unused") -public class WithMethodRuntimeException { - /** */ - void foo() throws HadoopIllegalArgumentException { - // No-op. - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithOuterClass.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithOuterClass.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithOuterClass.java deleted file mode 100644 index 8c11c20..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithOuterClass.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.conf.Configuration; - -/** - * Outer class depends on Hadoop, but Inner *static* one does not. - */ -@SuppressWarnings("unused") -public class WithOuterClass { - /** */ - Configuration c; - - /** */ - public static class InnerNoHadoop { - /** */ - int x; - - /** */ - void foo() {} - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithParameterAnnotation.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithParameterAnnotation.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithParameterAnnotation.java deleted file mode 100644 index 07019cc..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithParameterAnnotation.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.classification.InterfaceStability; - -/** - * Has a paramater annotated with a Hadoop annotation. - */ -@SuppressWarnings("unused") -public class WithParameterAnnotation { - /** */ - void foo(@InterfaceStability.Stable Object annotatedParam) { - // No-op. - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithStaticField.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithStaticField.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithStaticField.java deleted file mode 100644 index 08145df..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithStaticField.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import org.apache.hadoop.fs.FileSystem; - -/** - * Has a static field of Hadoop type. - */ -@SuppressWarnings("unused") -public class WithStaticField { - /** */ - static FileSystem fs; -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithStaticInitializer.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithStaticInitializer.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithStaticInitializer.java deleted file mode 100644 index 9b10b94..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/WithStaticInitializer.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -import java.util.List; -import org.apache.hadoop.fs.FileSystem; - -/** - * Uses Hadoop type in a static initializer. - */ -@SuppressWarnings("unused") -public class WithStaticInitializer { - /** */ - static final List x; - - static { - x = FileSystem.getAllStatistics(); - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/Without.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/Without.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/Without.java deleted file mode 100644 index da1dede..0000000 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/internal/processors/hadoop/impl/deps/Without.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.processors.hadoop.impl.deps; - -/** - * Class that does not anyhow depend on Hadoop. - */ -public class Without { - // No-op. -} http://git-wip-us.apache.org/repos/asf/ignite/blob/7d97f3d4/modules/hadoop-impl/src/test/java/org/apache/ignite/testsuites/IgniteHadoopTestSuite.java ---------------------------------------------------------------------- diff --git a/modules/hadoop-impl/src/test/java/org/apache/ignite/testsuites/IgniteHadoopTestSuite.java b/modules/hadoop-impl/src/test/java/org/apache/ignite/testsuites/IgniteHadoopTestSuite.java index 6578261..944e285 100644 --- a/modules/hadoop-impl/src/test/java/org/apache/ignite/testsuites/IgniteHadoopTestSuite.java +++ b/modules/hadoop-impl/src/test/java/org/apache/ignite/testsuites/IgniteHadoopTestSuite.java @@ -50,7 +50,6 @@ import org.apache.ignite.internal.processors.hadoop.impl.igfs.IgniteHadoopFileSy import org.apache.ignite.internal.processors.hadoop.impl.igfs.IgniteHadoopFileSystemLoopbackExternalPrimarySelfTest; import org.apache.ignite.internal.processors.hadoop.impl.igfs.IgniteHadoopFileSystemLoopbackExternalSecondarySelfTest; import org.apache.ignite.internal.processors.hadoop.impl.igfs.IgniteHadoopFileSystemSecondaryFileSystemInitializationSelfTest; -import org.apache.ignite.internal.processors.hadoop.impl.HadoopClassLoaderTest; import org.apache.ignite.internal.processors.hadoop.impl.HadoopCommandLineTest; import org.apache.ignite.internal.processors.hadoop.impl.HadoopDefaultMapReducePlannerSelfTest; import org.apache.ignite.internal.processors.hadoop.impl.HadoopFileSystemsTest; @@ -125,8 +124,6 @@ public class IgniteHadoopTestSuite extends TestSuite { suite.addTest(new TestSuite(ldr.loadClass(HadoopSnappyTest.class.getName()))); suite.addTest(new TestSuite(ldr.loadClass(HadoopSnappyFullMapReduceTest.class.getName()))); - suite.addTest(new TestSuite(ldr.loadClass(HadoopClassLoaderTest.class.getName()))); - suite.addTest(new TestSuite(ldr.loadClass(HadoopIgfs20FileSystemLoopbackPrimarySelfTest.class.getName()))); suite.addTest(new TestSuite(ldr.loadClass(HadoopIgfsDualSyncSelfTest.class.getName())));