C
C
cinematik2017-05-31 22:52:59
git
cinematik, 2017-05-31 22:52:59

Code formatting distortion on github?

After uploading to git, the class looks like

public class Result implements Serializable {
  
  private List<Element> list = new ArrayList<Element>();
  private String result; 
  
  private boolean showResult = false;
    
  public boolean isShowResult() {
        return showResult;
    }
    
    public void hide() {
    result = null;
    showResult = false;
    }

  public void addElement(String value) {
    list.add( new Element((int) System.currentTimeMillis(), value) );
  }

Obviously the formatting is broken - why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2017-05-31
@OnYourLips

Don't use tabs.
Of the modern languages, only Go uses them for some reason.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question