OpenJDK source code contains too many expletives

    It is with this title was created a ticket in Trac Java source:

    https://bugs.openjdk.java.net/browse/JDK-8215217

    The author believes that the presence of diverse warlike vocabulary in OpenJDK / JDK source codes prevent the professional community, if not the whole then at least some individuals. In total, the author counted 12 copies of this kind of "bugs."

    Quote:
    Jdk / jdk source, scattered all over the place.

    As an OpenJDK, it is inappropriate to use this context.

    The author attached a changeset with the replacement of foul language with censorship. The list is complete:

    src / java.desktop / macosx / classes / com / apple / laf / AquaLookAndFeel.java

    -            // these icons are pretty crappy to use in Mac OS X since
    +            // these icons are a poor substitute in Mac OS X since

    src / java.desktop / share / classes / com / sun / media / sound / SoftChannel.java

    -                rpnChange(0, 2 << 7);   // Bitch Bend sensitivity
    +                rpnChange(0, 2 << 7);   // Pitch Bend sensitivity

    src / java.xml / share / classes / com / sun / org / apache / xalan / internal / xsltc / dom / BitArray.java

    -     * method is a mess, but it is fast and it works, so don't fuck with it.
    +     * method is a mess, but it is fast and it works, so don't change it.
    

    src / java.desktop / macosx / classes / com / apple / laf / AquaLookAndFeel.java

    -            // these icons are pretty crappy to use in Mac OS X since
    +            // these icons are a poor substitute in Mac OS X since

    src / jdk.javadoc / share / classes / jdk / javadoc / internal / doclets / formats / html / resources / jquery / jszip / dist / jszip.js

    -    // Fuckup - very small and broken sequence,
    +    // TODO: Improve this very small and broken sequence,

    src / jdk.javadoc / share / classes / jdk / javadoc / internal / doclets / formats / html / resources / jquery / jszip / dist / jszip.js

    -            // well, fuck ?!
    +            // Oh no!

    test / jdk / java / nio / channels / spi / SelectorProvider / inheritedChannel / EchoTest.java

    -        String msg = "Where's that damn torpedo?";
    +        String msg = "Where's that darn torpedo?";
    

    test / jdk / javax / management / openmbean / ConstraintTest.java
    test / jdk / javax / management / openmbean / BadConstraintTest.java

    -        } catch (OpenDataException e) { // damn checked exceptions...
    +        } catch (OpenDataException e) { // wretched checked exceptions...

    test / jdk / jdk / internal / math / FloatingDecimal / OldFDBigIntForTest.java

    -            // damn, damn, damn. q is too big.
    +            // Calamity! q is too big.

    Also, the author complained that the Common Region for Access Protection class (an abbreviation of aka, whose variables are obscene) could not be renamed, at the same time reproaching this obviously unprintable title of the author.

    Also popular now: