diff options
author | mattinger <[email protected]> | 2006-07-06 21:53:00 +0000 |
---|---|---|
committer | mattinger <[email protected]> | 2006-07-06 21:53:00 +0000 |
commit | 1159111b7a71b72eb04326df33211e1733f7e742 (patch) | |
tree | f0a80c384f633e521649654ab78e6239cf5e0d6f /test/resources/design/src/mod |
Initial addition into subversion with build script changes
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@5 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'test/resources/design/src/mod')
41 files changed, 1277 insertions, 0 deletions
diff --git a/test/resources/design/src/mod/arraydepend/ClassDependsOnArray.java b/test/resources/design/src/mod/arraydepend/ClassDependsOnArray.java new file mode 100644 index 0000000..ed4b01c --- /dev/null +++ b/test/resources/design/src/mod/arraydepend/ClassDependsOnArray.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 9, 2005 + */ +package mod.arraydepend; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnArray { + + public void something() { + Object[] o = new DummyClass[5]; + } +} diff --git a/test/resources/design/src/mod/arraydepend2/ClassDependsOnArray.java b/test/resources/design/src/mod/arraydepend2/ClassDependsOnArray.java new file mode 100644 index 0000000..4d65a7a --- /dev/null +++ b/test/resources/design/src/mod/arraydepend2/ClassDependsOnArray.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 9, 2005 + */ +package mod.arraydepend2; + + + +/** + * + * @author dhiller + */ +public class ClassDependsOnArray { + + public void testArray() throws Exception { + Class c = String[].class; + } +} diff --git a/test/resources/design/src/mod/arraydepend3/ClassDependsOnArray.java b/test/resources/design/src/mod/arraydepend3/ClassDependsOnArray.java new file mode 100644 index 0000000..2ff6d67 --- /dev/null +++ b/test/resources/design/src/mod/arraydepend3/ClassDependsOnArray.java @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 9, 2005 + */ +package mod.arraydepend3; + +import mod.dummy.DummyClass; + + + +/** + * + * @author dhiller + */ +public class ClassDependsOnArray { + + public void testArray() throws Exception { + Class c = DummyClass[].class; + } +} diff --git a/test/resources/design/src/mod/castdepend/ClassDependsOnCast.java b/test/resources/design/src/mod/castdepend/ClassDependsOnCast.java new file mode 100644 index 0000000..b6ad33a --- /dev/null +++ b/test/resources/design/src/mod/castdepend/ClassDependsOnCast.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.castdepend; + +import mod.dummy.DummyInterface; + +/** + * + * @author dhiller + */ +public class ClassDependsOnCast { + + public void getSomething(Object obj) { + Object o = (DummyInterface)obj; + } +} diff --git a/test/resources/design/src/mod/catchdepend/ClassDependsOnCatch.java b/test/resources/design/src/mod/catchdepend/ClassDependsOnCatch.java new file mode 100644 index 0000000..a103240 --- /dev/null +++ b/test/resources/design/src/mod/catchdepend/ClassDependsOnCatch.java @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.catchdepend; + +import mod.dummy.DummyRuntimeException; + +/** + * + * @author dhiller + */ +public class ClassDependsOnCatch { + + public void doNothing() { + try { + int x = 0; + int y = x+4; + } catch(DummyRuntimeException e) { + + } + } +} diff --git a/test/resources/design/src/mod/declarejavautil/ClassDependsOnJavaUtil.java b/test/resources/design/src/mod/declarejavautil/ClassDependsOnJavaUtil.java new file mode 100644 index 0000000..077da65 --- /dev/null +++ b/test/resources/design/src/mod/declarejavautil/ClassDependsOnJavaUtil.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 19, 2005 + */ +package mod.declarejavautil; + +import java.util.List; + +/** + * + * @author dhiller + */ +public class ClassDependsOnJavaUtil { + + public List list; +} diff --git a/test/resources/design/src/mod/declarejavax/ClassDependsOnJavax.java b/test/resources/design/src/mod/declarejavax/ClassDependsOnJavax.java new file mode 100644 index 0000000..cd79675 --- /dev/null +++ b/test/resources/design/src/mod/declarejavax/ClassDependsOnJavax.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 19, 2005 + */ +package mod.declarejavax; + +import javax.swing.JButton; + +/** + * + * @author dhiller + */ +public class ClassDependsOnJavax { + + public JButton b = null; + +} diff --git a/test/resources/design/src/mod/dummy/DummyClass.java b/test/resources/design/src/mod/dummy/DummyClass.java new file mode 100644 index 0000000..f2f48df --- /dev/null +++ b/test/resources/design/src/mod/dummy/DummyClass.java @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.dummy; + +/** + * + * @author dhiller + */ +public class DummyClass { + + public static final String CONSTANT = "asdf"; + public static String staticField = "xxxx"; + + public static String returnSomething() { + return "Xxx"; + } +} diff --git a/test/resources/design/src/mod/dummy/DummyException.java b/test/resources/design/src/mod/dummy/DummyException.java new file mode 100644 index 0000000..3884fc1 --- /dev/null +++ b/test/resources/design/src/mod/dummy/DummyException.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.dummy; + +/** + * + * @author dhiller + */ +public class DummyException extends Exception { + +} diff --git a/test/resources/design/src/mod/dummy/DummyInterface.java b/test/resources/design/src/mod/dummy/DummyInterface.java new file mode 100644 index 0000000..e7432fa --- /dev/null +++ b/test/resources/design/src/mod/dummy/DummyInterface.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.dummy; + +/** + * + * @author dhiller + */ +public interface DummyInterface { + +} diff --git a/test/resources/design/src/mod/dummy/DummyRuntimeException.java b/test/resources/design/src/mod/dummy/DummyRuntimeException.java new file mode 100644 index 0000000..53cb35a --- /dev/null +++ b/test/resources/design/src/mod/dummy/DummyRuntimeException.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.dummy; + +/** + * + * @author dhiller + */ +public class DummyRuntimeException extends RuntimeException { + +} diff --git a/test/resources/design/src/mod/fielddepend/ClassDependsOnField.java b/test/resources/design/src/mod/fielddepend/ClassDependsOnField.java new file mode 100644 index 0000000..226003b --- /dev/null +++ b/test/resources/design/src/mod/fielddepend/ClassDependsOnField.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.fielddepend; + +import mod.dummy.DummyClass; + +/** + * This class depends on a field in another package. + * + * @author dhiller + */ +public class ClassDependsOnField { + + private DummyClass f; +} diff --git a/test/resources/design/src/mod/fieldrefdepend/ClassDependsOnReferenceInFieldDeclaration.java b/test/resources/design/src/mod/fieldrefdepend/ClassDependsOnReferenceInFieldDeclaration.java new file mode 100644 index 0000000..8329bfc --- /dev/null +++ b/test/resources/design/src/mod/fieldrefdepend/ClassDependsOnReferenceInFieldDeclaration.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.fieldrefdepend; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnReferenceInFieldDeclaration { + + private Class c = DummyClass.class; + +} diff --git a/test/resources/design/src/mod/innerclassdepend/InnerClassDependsOnSuper.java b/test/resources/design/src/mod/innerclassdepend/InnerClassDependsOnSuper.java new file mode 100644 index 0000000..ee882e5 --- /dev/null +++ b/test/resources/design/src/mod/innerclassdepend/InnerClassDependsOnSuper.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.innerclassdepend; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class InnerClassDependsOnSuper { + + private class Inner extends DummyClass { + + } +} diff --git a/test/resources/design/src/mod/instanceofdepend/ClassDependsOnInstanceOf.java b/test/resources/design/src/mod/instanceofdepend/ClassDependsOnInstanceOf.java new file mode 100644 index 0000000..55a78bb --- /dev/null +++ b/test/resources/design/src/mod/instanceofdepend/ClassDependsOnInstanceOf.java @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.instanceofdepend; + +import mod.dummy.DummyInterface; + +/** + * + * @author dhiller + */ +public class ClassDependsOnInstanceOf { + + public void getSomething(Object o) { + int x = 0; + if(o instanceof DummyInterface) { + x = 4; + } + } +} diff --git a/test/resources/design/src/mod/interfacedepend/ClassDependsOnInterfaceMod2.java b/test/resources/design/src/mod/interfacedepend/ClassDependsOnInterfaceMod2.java new file mode 100644 index 0000000..6713b1c --- /dev/null +++ b/test/resources/design/src/mod/interfacedepend/ClassDependsOnInterfaceMod2.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.interfacedepend; + +import mod.dummy.DummyInterface; + +/** + * This class depends on an interface in another package creating a dependency + * between packages. + * + * @author dhiller + */ +public class ClassDependsOnInterfaceMod2 implements DummyInterface { + +} diff --git a/test/resources/design/src/mod/localvardepend/ClassDependsOnLocalVar.java b/test/resources/design/src/mod/localvardepend/ClassDependsOnLocalVar.java new file mode 100644 index 0000000..cd177da --- /dev/null +++ b/test/resources/design/src/mod/localvardepend/ClassDependsOnLocalVar.java @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.localvardepend; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnLocalVar { + + public String doNothing() { + DummyClass c = null; + + return ""+c; + } +} diff --git a/test/resources/design/src/mod/localvarrefdepend/ClassDependsOnLocalVariableReference.java b/test/resources/design/src/mod/localvarrefdepend/ClassDependsOnLocalVariableReference.java new file mode 100644 index 0000000..8e77433 --- /dev/null +++ b/test/resources/design/src/mod/localvarrefdepend/ClassDependsOnLocalVariableReference.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.localvarrefdepend; + +import mod.dummy.DummyInterface; + +/** + * + * @author dhiller + */ +public class ClassDependsOnLocalVariableReference { + + public void doNothing() { + Class c = DummyInterface.class; + } +} diff --git a/test/resources/design/src/mod/newdepend/ClassDependsOnNew.java b/test/resources/design/src/mod/newdepend/ClassDependsOnNew.java new file mode 100644 index 0000000..efcaa49 --- /dev/null +++ b/test/resources/design/src/mod/newdepend/ClassDependsOnNew.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.newdepend; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnNew { + + public void doNothing() { + new DummyClass(); + } +} diff --git a/test/resources/design/src/mod/newdepend2/ClassDependsOnNewInField.java b/test/resources/design/src/mod/newdepend2/ClassDependsOnNewInField.java new file mode 100644 index 0000000..d76ade3 --- /dev/null +++ b/test/resources/design/src/mod/newdepend2/ClassDependsOnNewInField.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.newdepend2; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnNewInField { + + public Object o = new DummyClass(); +} diff --git a/test/resources/design/src/mod/nodebugoption/ClassDependsOnLocalVar.java b/test/resources/design/src/mod/nodebugoption/ClassDependsOnLocalVar.java new file mode 100644 index 0000000..bb65e63 --- /dev/null +++ b/test/resources/design/src/mod/nodebugoption/ClassDependsOnLocalVar.java @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 13, 2005 + */ +package mod.nodebugoption; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnLocalVar { + + public void doSomething() { + DummyClass c = null; + //without debug option enabled, the type DummyClass is lost so we + //must fail with the error saying class wasn't compiled with -g option + //enabled in javac. + } +} diff --git a/test/resources/design/src/mod/paramdepend/ClassDependsOnParameter.java b/test/resources/design/src/mod/paramdepend/ClassDependsOnParameter.java new file mode 100644 index 0000000..12866b1 --- /dev/null +++ b/test/resources/design/src/mod/paramdepend/ClassDependsOnParameter.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.paramdepend; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnParameter { + + public void setSomething(String dummy, DummyClass c) { + + } +} diff --git a/test/resources/design/src/mod/passlocaldepend/ClassDependsOnClassInSamePackage.java b/test/resources/design/src/mod/passlocaldepend/ClassDependsOnClassInSamePackage.java new file mode 100644 index 0000000..a2ae720 --- /dev/null +++ b/test/resources/design/src/mod/passlocaldepend/ClassDependsOnClassInSamePackage.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 13, 2005 + */ +package mod.passlocaldepend; + +/** + * + * @author dhiller + */ +public class ClassDependsOnClassInSamePackage { + + public void doSomething(FakeClass c) { + + } +} diff --git a/test/resources/design/src/mod/passlocaldepend/FakeClass.java b/test/resources/design/src/mod/passlocaldepend/FakeClass.java new file mode 100644 index 0000000..ed35025 --- /dev/null +++ b/test/resources/design/src/mod/passlocaldepend/FakeClass.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 13, 2005 + */ +package mod.passlocaldepend; + +/** + * + * @author dhiller + */ +public class FakeClass { + +} diff --git a/test/resources/design/src/mod/putstatic/ClassDependsOnNothing.java b/test/resources/design/src/mod/putstatic/ClassDependsOnNothing.java new file mode 100644 index 0000000..fbedddf --- /dev/null +++ b/test/resources/design/src/mod/putstatic/ClassDependsOnNothing.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 13, 2005 + */ +package mod.putstatic; + + +/** + * + * @author dhiller + */ +public class ClassDependsOnNothing { + + private static String s; + public static void setJarLocator(String l) { + s = l; + } +} diff --git a/test/resources/design/src/mod/recursion/client/ClassDependsOnSubPackage.java b/test/resources/design/src/mod/recursion/client/ClassDependsOnSubPackage.java new file mode 100644 index 0000000..ce95d9c --- /dev/null +++ b/test/resources/design/src/mod/recursion/client/ClassDependsOnSubPackage.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 13, 2005 + */ +package mod.recursion.client; + +import mod.recursion.rec.a.FakeClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnSubPackage { + + public FakeClass getSoemthing() { + return null; + } +} diff --git a/test/resources/design/src/mod/recursion/rec/a/FakeClass.java b/test/resources/design/src/mod/recursion/rec/a/FakeClass.java new file mode 100644 index 0000000..ada6615 --- /dev/null +++ b/test/resources/design/src/mod/recursion/rec/a/FakeClass.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 13, 2005 + */ +package mod.recursion.rec.a; + +/** + * + * @author dhiller + */ +public class FakeClass { + +} diff --git a/test/resources/design/src/mod/recursion2/dependency/Dependency.java b/test/resources/design/src/mod/recursion2/dependency/Dependency.java new file mode 100644 index 0000000..dc9b594 --- /dev/null +++ b/test/resources/design/src/mod/recursion2/dependency/Dependency.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 13, 2005 + */ +package mod.recursion2.dependency; + +/** + * + * @author dhiller + */ +public class Dependency { + +} diff --git a/test/resources/design/src/mod/recursion2/rec/client/SubpackageClassDependsOnPackage.java b/test/resources/design/src/mod/recursion2/rec/client/SubpackageClassDependsOnPackage.java new file mode 100644 index 0000000..57dc96a --- /dev/null +++ b/test/resources/design/src/mod/recursion2/rec/client/SubpackageClassDependsOnPackage.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 16, 2005 + */ +package mod.recursion2.rec.client; + +import mod.recursion2.dependency.Dependency; + +/** + * + * @author dhiller + */ +public class SubpackageClassDependsOnPackage { + + public Dependency doNothing() { + return null; + } +} diff --git a/test/resources/design/src/mod/recursion3/client/SubpackageClassDependsOnSubpackage.java b/test/resources/design/src/mod/recursion3/client/SubpackageClassDependsOnSubpackage.java new file mode 100644 index 0000000..64dd1ce --- /dev/null +++ b/test/resources/design/src/mod/recursion3/client/SubpackageClassDependsOnSubpackage.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 16, 2005 + */ +package mod.recursion3.client; + +import mod.recursion3.svc.DependencyClass; + +/** + * + * @author dhiller + */ +public class SubpackageClassDependsOnSubpackage { + + public void doSomething(DependencyClass c) { + + } +} diff --git a/test/resources/design/src/mod/recursion3/svc/DependencyClass.java b/test/resources/design/src/mod/recursion3/svc/DependencyClass.java new file mode 100644 index 0000000..e3bc462 --- /dev/null +++ b/test/resources/design/src/mod/recursion3/svc/DependencyClass.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 16, 2005 + */ +package mod.recursion3.svc; + +/** + * + * @author dhiller + */ +public class DependencyClass { + +} diff --git a/test/resources/design/src/mod/returnvaldepend/ClassDependsOnReturnValue.java b/test/resources/design/src/mod/returnvaldepend/ClassDependsOnReturnValue.java new file mode 100644 index 0000000..61f00ae --- /dev/null +++ b/test/resources/design/src/mod/returnvaldepend/ClassDependsOnReturnValue.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.returnvaldepend; + +import mod.dummy.DummyInterface; + +/** + * + * @author dhiller + */ +public class ClassDependsOnReturnValue { + + public DummyInterface getSomething() { + return null; + } +} diff --git a/test/resources/design/src/mod/signatureexceptiondepend/ClassDependsOnExceptionInMethodSignature.java b/test/resources/design/src/mod/signatureexceptiondepend/ClassDependsOnExceptionInMethodSignature.java new file mode 100644 index 0000000..a235e12 --- /dev/null +++ b/test/resources/design/src/mod/signatureexceptiondepend/ClassDependsOnExceptionInMethodSignature.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.signatureexceptiondepend; + +import mod.dummy.DummyException; + +/** + * + * @author dhiller + */ +public class ClassDependsOnExceptionInMethodSignature { + + public String doNothing() throws DummyException { + return null; + } +} diff --git a/test/resources/design/src/mod/staticdepend/ClassDependsOnStatic.java b/test/resources/design/src/mod/staticdepend/ClassDependsOnStatic.java new file mode 100644 index 0000000..60b1f53 --- /dev/null +++ b/test/resources/design/src/mod/staticdepend/ClassDependsOnStatic.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.staticdepend; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnStatic { + + public String getSomething() { + return DummyClass.returnSomething(); + } +} diff --git a/test/resources/design/src/mod/staticfield2depend/ClassDependsOnStaticField.java b/test/resources/design/src/mod/staticfield2depend/ClassDependsOnStaticField.java new file mode 100644 index 0000000..6d2a587 --- /dev/null +++ b/test/resources/design/src/mod/staticfield2depend/ClassDependsOnStaticField.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 9, 2005 + */ +package mod.staticfield2depend; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnStaticField { + + public static DummyClass x = null; + + +} diff --git a/test/resources/design/src/mod/staticfielddepend/ClassDependsOnStaticField.java b/test/resources/design/src/mod/staticfielddepend/ClassDependsOnStaticField.java new file mode 100644 index 0000000..67f35db --- /dev/null +++ b/test/resources/design/src/mod/staticfielddepend/ClassDependsOnStaticField.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 9, 2005 + */ +package mod.staticfielddepend; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnStaticField { + + public void doNothing() { + String s = DummyClass.staticField; + } +} diff --git a/test/resources/design/src/mod/staticfinaldepend/ClassDependsOnConstant.java b/test/resources/design/src/mod/staticfinaldepend/ClassDependsOnConstant.java new file mode 100644 index 0000000..6273c9a --- /dev/null +++ b/test/resources/design/src/mod/staticfinaldepend/ClassDependsOnConstant.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 9, 2005 + */ +package mod.staticfinaldepend; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class ClassDependsOnConstant { + + public void doNothing() { + String s = ""+DummyClass.CONSTANT; + } +} diff --git a/test/resources/design/src/mod/superdepend/ClassDependsOnSuperMod2.java b/test/resources/design/src/mod/superdepend/ClassDependsOnSuperMod2.java new file mode 100644 index 0000000..880f757 --- /dev/null +++ b/test/resources/design/src/mod/superdepend/ClassDependsOnSuperMod2.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.superdepend; + +import mod.dummy.DummyClass; + +/** + * This class depends on a superclass in another package creating a dependency + * between packages. + * @author dhiller + */ +public class ClassDependsOnSuperMod2 extends DummyClass { + +} diff --git a/test/resources/design/src/mod/temp/Factory.java b/test/resources/design/src/mod/temp/Factory.java new file mode 100644 index 0000000..a05622e --- /dev/null +++ b/test/resources/design/src/mod/temp/Factory.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Jan 13, 2005 + */ +package mod.temp; + +import mod.dummy.DummyClass; + +/** + * + * @author dhiller + */ +public class Factory { + + public static DummyClass create() { + return new DummyClass(); + } +} diff --git a/test/resources/design/src/mod/warfailure/ClassDependsOnSuperMod2.java b/test/resources/design/src/mod/warfailure/ClassDependsOnSuperMod2.java new file mode 100644 index 0000000..3ee27c7 --- /dev/null +++ b/test/resources/design/src/mod/warfailure/ClassDependsOnSuperMod2.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.warfailure; + +import mod.dummy.DummyClass; + +/** + * This class depends on a superclass in another package creating a dependency + * between packages. + * @author dhiller + */ +public class ClassDependsOnSuperMod2 extends DummyClass { + +} diff --git a/test/resources/design/src/mod/warsuccess/ClassDependsOnSuperMod2.java b/test/resources/design/src/mod/warsuccess/ClassDependsOnSuperMod2.java new file mode 100644 index 0000000..da5e8a2 --- /dev/null +++ b/test/resources/design/src/mod/warsuccess/ClassDependsOnSuperMod2.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2001-2004 Ant-Contrib project. All rights reserved. + * + * Licensed 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. + */ +/* + * Created on Dec 29, 2004 + */ +package mod.warsuccess; + +import mod.dummy.DummyClass; + +/** + * This class depends on a superclass in another package creating a dependency + * between packages. + * @author dhiller + */ +public class ClassDependsOnSuperMod2 extends DummyClass { + +} |