API Doku Stilblüten

hab die JDK source leider nicht :-/

deutlicher gehts nimmer :-)

Code:
/**
 * A Multipurpose Internet Mail Extension (MIME) type, as defined
 * in RFC 2045 and 2046.
 *
 * THIS IS *NOT* - REPEAT *NOT* - A PUBLIC CLASS! DataFlavor IS
 * THE PUBLIC INTERFACE, AND THIS IS PROVIDED AS A ***PRIVATE***
 * (THAT IS AS IN *NOT* PUBLIC) HELPER CLASS!
 */
 
org.eclipse.gef.tools.AbstractTool

Code:
/**
 * Called when invalid input is encountered. The state does not change, so the
 * caller must set the state to {@link AbstractTool#STATE_INVALID}.
 * @return <code>true</code>
 */
protected boolean handleInvalidInput() {
	return false;
}
 
Code:
        /**
	 * @param selection 
	 * int 0 = MaxSpeed; 1 = MaxAcc; 2 = actualOxygen; 3 = actualFuel; 4 = actualFlightTime
	 * @return maximale irgenwas (siehe param) die bisher im Flightlog steht
	 * @throws IOException 
	 */
	
	private double getAnything(int selection) throws IOException {
Das resutliert dann in so schoenen aufrufen wie getAnything(4). Wobei die Funktion vor meinem Rueffel noch public war :D. Jetzt hat der Autor einen Wrapper geschrieben, aber arbeitet intern trotzdem damit.
 
lange hats gedauert, aber ich konnte mich nun doch mal aufraffen src.zip zu begutachten.

Code:
kabel@debian:/tmp/src$ grep -R hack *
com/sun/corba/se/impl/io/ObjectStreamClass.java:             * Previously this hack was previously present in the VM.
com/sun/corba/se/impl/naming/cosnaming/TransientNameServer.java:            // used to replace this hack!
com/sun/corba/se/impl/orbutil/ObjectStreamClassUtil_1_3.java:        * Previously this hack was previously present in th   e VM.
com/sun/java/swing/SwingUtilities2.java:     * This is a hack for fixing both bugs 4761990 and 5003294
com/sun/java/swing/plaf/windows/XPStyle.java:            // support margins (to avoid this hackery), but we've
com/sun/java/swing/plaf/windows/XPStyle.java:            // support margins (to avoid this hackery), but we've
com/sun/jmx/mbeanserver/MBeanServerDelegateImpl.java:   // This is a hack: we call getAttribute in order to generate an
com/sun/jmx/trace/Trace.java:     * This method is a hack for backward compatibility with J2SE 1.3.
com/sun/jmx/trace/Trace.java:     * This method is a hack for backward compatibility with J2SE 1.3.
com/sun/org/apache/xalan/internal/xslt/EnvironmentCheck.java:    // Note: hackish Hashtable, this could use improvement
com/sun/org/apache/xerces/internal/dom/DOMConfigurationImpl.java:        //          This is a hack to allow DTD configu   ration to be build.
com/sun/org/apache/xerces/internal/dom/DOMNormalizer.java:                // NOTE: this is a hack: it is possible that D   OM had an empty element
com/sun/org/apache/xerces/internal/impl/xpath/XPath.java:    //       this implementation is just a temporary hack until    a better
com/sun/org/apache/xerces/internal/jaxp/DocumentBuilderFactoryImpl.java:        // DocumentBuilderImpl, but because of t   he hack in the getAttribute method,
com/sun/org/apache/xml/internal/dtm/ref/sax2dtm/SAX2DTM.java:      // Bit of a hack... if somehow valString is null, str   ingToIndex will
com/sun/org/apache/xml/internal/dtm/ref/sax2dtm/SAX2DTM2.java:      // Bit of a hack... if somehow valString is null, st   ringToIndex will
com/sun/org/apache/xml/internal/serialize/HTMLSerializer.java:        // Temporary hack to prevent line breaks inside A/   TD
com/sun/org/apache/xml/internal/serializer/ToHTMLSAXHandler.java:        // hack for XSLTC with finding URI for default    namespace
com/sun/org/apache/xml/internal/serializer/ToHTMLStream.java:                    // The next is kind of a hack to keep f   rom escaping in the case 
com/sun/org/apache/xml/internal/serializer/ToHTMLStream.java:        // Use a fairly nasty hack to tell if the next node    is supposed to be 
com/sun/org/apache/xml/internal/serializer/ToHTMLStream.java:            // hack for XSLTC with finding URI for default    namespace
com/sun/org/apache/xml/internal/serializer/ToStream.java:        // the check with _escaping is a bit of a hack for XLST   C
com/sun/org/apache/xml/internal/serializer/ToStream.java:                    // hack for XSLTC attribset16 test
com/sun/org/apache/xml/internal/serializer/ToUnknownStream.java:        // hack for XSLTC with finding URI for default n   amespace
com/sun/org/apache/xml/internal/serializer/ToXMLSAXHandler.java:                        if (!EMPTYSTRING.equals(uri)) //    hack for XSLTC attribset16 test
com/sun/org/apache/xml/internal/serializer/ToXMLStream.java:        // hack for XSLTC with finding URI for default names   pace
com/sun/org/apache/xml/internal/utils/SerializableLocatorImpl.java: * This is a quick hack to make it so. Note that it m   akes more sense
com/sun/org/apache/xpath/internal/NodeSet.java:    m_next = saved; // HACK: I think this is a bit of a hack.  -sb
com/sun/org/apache/xpath/internal/NodeSetDTM.java:    m_next = saved; // HACK: I think this is a bit of a hack.  -sb
com/sun/org/apache/xpath/internal/axes/FilterExprWalker.java:           // hack/temp workaround
com/sun/org/apache/xpath/internal/compiler/Compiler.java:      // bit-o-hackery, but this code is due for the morgue any   way...
com/sun/org/apache/xpath/internal/compiler/FuncLoader.java:      //hack for loading only built-in function classes.
com/sun/java_cup/internal/Main.java:     hackish, yes, but works */
com/sun/java_cup/internal/lexer.java:      /* allow for % in identifiers.  a hack to allow my
java/awt/Component.java:     * This hack is for Swing serialization. It will invoke
java/awt/Component.java:        // hack accomodates this.
java/awt/EventDispatchThread.java:     * <p> <i>Note:</i> This method is a temporary hack to work around the
java/awt/EventQueue.java:        // have been frowned upon. So for now, we hack.
java/awt/color/ICC_Profile.java:            /* hack to detect profiles whose loading can be deferred */
java/beans/MetaData.java:        // This unappealing hack is not required but makes the
java/nio/channels/spi/AbstractInterruptibleChannel.java:    // -- Reflection hackery --
javax/management/remote/JMXServiceURL.java:            We need a special hack to check, as required by the
javax/swing/JComponent.java:         * serialization scheme, so we compromise with this 'instanceof' hack
javax/swing/plaf/basic/BasicBorders.java:            // support margins (to avoid this hackery), but we've
javax/swing/plaf/basic/BasicComboBoxUI.java:    // This is currently hacky...
javax/swing/plaf/basic/BasicComboBoxUI.java:    // This is currently hacky...
javax/swing/plaf/synth/SynthLookAndFeel.java:            // Yes, this is hacky. A better solution is to get the UI
javax/swing/text/PlainView.java:     * This is a hack and temporary until we can better address the problem
javax/swing/text/StringContent.java:     * this... so this class trys to hack a solution 
javax/swing/text/html/StyleSheet.java:   * PENDING(prinz) This is pretty badly hacked at the 
javax/swing/text/html/parser/Parser.java:       // big hack, but this should never get used...
kabel@debian:/tmp/src$ 
kabel@debian:/tmp/src$ grep -R hack * | wc -l
51
kabel@debian:/tmp/src$

das hebt die stimmung :-) (morgen erste mündliche diplomprüfung .oO )

mein favorit:
// bit-o-hackery, but this code is due for the morgue anyway...

LOL LOL LOL LOL LOL LOL LOL LOL :-)
 

Neue Beiträge

Zurück