# HG changeset patch # User Jaroslav Tulach # Date 1213430059 -7200 # Node ID 4bf599099de7bca72115ee7e0f532248a63afe66 # Parent 9d2007487823039ce607a4448ebff597dff0b5d7 Clean messages in the API examples diff -r 9d2007487823 -r 4bf599099de7 samples/sidemeanings/build.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/sidemeanings/build.xml Sat Jun 14 09:54:19 2008 +0200 @@ -0,0 +1,69 @@ + + + + + + Builds, tests, and runs the project sidemeanings. + + + diff -r 9d2007487823 -r 4bf599099de7 samples/sidemeanings/nbproject/build-impl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/sidemeanings/nbproject/build-impl.xml Sat Jun 14 09:54:19 2008 +0200 @@ -0,0 +1,627 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + + + + + + java -cp "${run.classpath.with.dist.jar}" ${main.class} + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + diff -r 9d2007487823 -r 4bf599099de7 samples/sidemeanings/nbproject/genfiles.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/sidemeanings/nbproject/genfiles.properties Sat Jun 14 09:54:19 2008 +0200 @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ff1f72f4 +build.xml.script.CRC32=2f910bbe +build.xml.stylesheet.CRC32=be360661 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=ff1f72f4 +nbproject/build-impl.xml.script.CRC32=12f37a49 +nbproject/build-impl.xml.stylesheet.CRC32=f1d9da08 diff -r 9d2007487823 -r 4bf599099de7 samples/sidemeanings/nbproject/project.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/sidemeanings/nbproject/project.properties Sat Jun 14 09:54:19 2008 +0200 @@ -0,0 +1,59 @@ +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/sidemeanings.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +file.reference.junit-4.4.jar=../libs/dist/junit-4.4.jar +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.classpath}:\ + ${file.reference.junit-4.4.jar} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +meta.inf.dir=${src.dir}/META-INF +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value +# or test-sys-prop.name=value to set system properties for unit tests): +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff -r 9d2007487823 -r 4bf599099de7 samples/sidemeanings/nbproject/project.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/sidemeanings/nbproject/project.xml Sat Jun 14 09:54:19 2008 +0200 @@ -0,0 +1,16 @@ + + + org.netbeans.modules.java.j2seproject + + + sidemeanings + 1.6.5 + + + + + + + + + diff -r 9d2007487823 -r 4bf599099de7 samples/sidemeanings/src/org/apidesign/sidemeanings/Mixed.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/sidemeanings/src/org/apidesign/sidemeanings/Mixed.java Sat Jun 14 09:54:19 2008 +0200 @@ -0,0 +1,47 @@ +package org.apidesign.sidemeanings; + +public final class Mixed { + private Mixed() {} + + + // BEGIN: sidemeanings.Mixed.Dirty + public static abstract class MixedClass { + protected MixedClass() { } + + public final void apiForClients() { /*...*/ } + protected abstract void toBeImplementedBySubclass(); + protected final void toBeCalledBySubclass() { /* ... */ } + } + // END: sidemeanings.Mixed.Dirty + + // BEGIN: sidemeanings.Mixed.Clean + public static final class NonMixed { + private NonMixed() {} + public static NonMixed create(NonMixedImpl impl) { + NonMixed api = new NonMixed(); + Callback callback = new Callback(api); + impl.initialize(callback); + return api; + } + + public final void apiForClients() { /*...*/ } + } + + public static interface NonMixedImpl { + public void initialize(Callback c); + public void toBeImplementedBySubclass(); + } + + public static final class Callback { + Callback(NonMixed nomMixed) { + } + public final void toBeCalledBySubclass() { + /*...*/ + } + } + // BEGIN: sidemeanings.Mixed.Clean + + +} + + diff -r 9d2007487823 -r 4bf599099de7 samples/sidemeanings/src/org/apidesign/sidemeanings/Protected.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/sidemeanings/src/org/apidesign/sidemeanings/Protected.java Sat Jun 14 09:54:19 2008 +0200 @@ -0,0 +1,25 @@ +package org.apidesign.sidemeanings; + +public final class Protected { + private Protected() {} + + + public class Dirty { + // BEGIN: sidemeanings.Protected.Dirty + protected void method() { + someCode(); + } + // END: sidemeanings.Protected.Dirty + private void someCode() { + } + } + + + public abstract class Clean { + // BEGIN: sidemeanings.Protected.Clean + protected abstract void method(); + protected final void someCode() { + } + // END: sidemeanings.Protected.Clean + } +} diff -r 9d2007487823 -r 4bf599099de7 samples/sidemeanings/src/org/apidesign/sidemeanings/Public.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/sidemeanings/src/org/apidesign/sidemeanings/Public.java Sat Jun 14 09:54:19 2008 +0200 @@ -0,0 +1,28 @@ +package org.apidesign.sidemeanings; + +public final class Public { + private Public() {} + + + public abstract class Dirty { + // BEGIN: sidemeanings.Public.Dirty + public void method() { + someCode(); + } + // END: sidemeanings.Public.Dirty + private void someCode() { + } + } + + + public abstract class Clean { + // BEGIN: sidemeanings.Public.Clean + public final void method() { + methodImpl(); + } + protected abstract void methodImpl(); + protected final void someCode() { + } + // END: sidemeanings.Public.Clean + } +} diff -r 9d2007487823 -r 4bf599099de7 samples/sidemeanings/src/org/apidesign/sidemeanings/PublicAbstract.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/sidemeanings/src/org/apidesign/sidemeanings/PublicAbstract.java Sat Jun 14 09:54:19 2008 +0200 @@ -0,0 +1,22 @@ +package org.apidesign.sidemeanings; + +public final class PublicAbstract { + private PublicAbstract() {} + + + public abstract class Dirty { + // BEGIN: sidemeanings.PublicAbstract.Dirty + public abstract void method(); + // END: sidemeanings.PublicAbstract.Dirty + } + + + public abstract class Clean { + // BEGIN: sidemeanings.PublicAbstract.Clean + public final void method() { + methodImpl(); + } + protected abstract void methodImpl(); + // END: sidemeanings.PublicAbstract.Clean + } +}