comparison src/org/tmatesoft/hg/internal/IntTuple.java @ 677:1c49c0cee540

Report line number at the first appearance, like 'hg annotate -l' does
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 18 Jul 2013 18:47:45 +0200
parents cce0387c6041
children
comparison
equal deleted inserted replaced
676:3219cfadda49 677:1c49c0cee540
51 return (IntTuple) super.clone(); 51 return (IntTuple) super.clone();
52 } catch (CloneNotSupportedException ex) { 52 } catch (CloneNotSupportedException ex) {
53 throw new Error(ex); 53 throw new Error(ex);
54 } 54 }
55 } 55 }
56
57 @Override
58 public String toString() {
59 StringBuilder sb = new StringBuilder();
60 sb.append('(');
61 for (int i = 0; i < size; i++) {
62 sb.append(at(i));
63 sb.append(", ");
64 }
65 sb.setLength(sb.length() - 2);
66 sb.append(')');
67 return sb.toString();
68 }
56 } 69 }