Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: square/java-code-styles
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: twyatt/java-code-styles
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 18 commits
  • 18 files changed
  • 1 contributor

Commits on Jul 25, 2017

  1. Rebrand to Pax

    In preparation for PAX Labs customizations, all references to Square
    have been changed to Pax.
    twyatt authored and nachtien committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    b617e80 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bf37b17 View commit details
    Browse the repository at this point in the history
  3. Change indent size to 4

    twyatt authored and nachtien committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    0aaa7e6 View commit details
    Browse the repository at this point in the history
  4. Chop method declarations if long (Java)

    Editor > Code Style > Java
    
    Method declaration parameters: Chop down if long
      Align when multiline [X]
    twyatt authored and nachtien committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    995171f View commit details
    Browse the repository at this point in the history
  5. Enable "private member" inspection warning

    To reduce method count, the J2ME warning re: private member access was
    enabled so that we would be warned when an unnecessary synthetic method
    is being created. See the excellent talk[1] by Jake Wharton on the
    subject for more details.
    
    [1]: http://jakewharton.com/exploring-java-hidden-costs/
    twyatt authored and nachtien committed Jul 25, 2017
    Configuration menu
    Copy the full SHA
    10282c4 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2017

  1. Set continuation indent to 4 (XML)

    Editor > Code Style > XML
    
    Tabs and Indents
    Continuation indent: 4
    twyatt authored and nachtien committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    eb3d235 View commit details
    Browse the repository at this point in the history
  2. Insert line break before namespace declarations (XML)

    Editor > Code Style > XML
    
    Layout Files
    Insert line break before first attribute
      [X] Include namespace declaration
    twyatt authored and nachtien committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    6b362b8 View commit details
    Browse the repository at this point in the history
  3. Insert blank line before tag (XML)

    Editor > Code Style > XML
    
    Layout Files
    [X] Insert blank line before tag
    twyatt authored and nachtien committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    32262f2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ddf5ddd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6a1fbc2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1b06ed9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b83683a View commit details
    Browse the repository at this point in the history
  8. Enable optimize imports on the fly

    twyatt authored and nachtien committed Jul 28, 2017
    Configuration menu
    Copy the full SHA
    c2255c9 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2017

  1. Add inspections installation instructions

    twyatt authored and nachtien committed Aug 16, 2017
    Configuration menu
    Copy the full SHA
    4515dbf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    54ca601 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    19f5c33 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2017

  1. Set Kotlin property annotations to "Do not wrap"

    twyatt authored and Travis Wyatt committed Sep 27, 2017
    Configuration menu
    Copy the full SHA
    0957a4d View commit details
    Browse the repository at this point in the history
  2. Add screenshot of Kotlin "Wrapping and Braces" settings

    twyatt authored and Travis Wyatt committed Sep 27, 2017
    Configuration menu
    Copy the full SHA
    470f522 View commit details
    Browse the repository at this point in the history
Loading