comparison src/org/tmatesoft/hg/internal/IntVector.java @ 549:83afa680555d

Annotate merge revision (combined diff against two parents without looking further)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 19 Feb 2013 21:17:39 +0100
parents 15b406c7cd9d
children 4ea0351ca878
comparison
equal deleted inserted replaced
548:ab21ac7dd833 549:83afa680555d
103 assert newCapacity > 0 && newCapacity != data.length : newCapacity; 103 assert newCapacity > 0 && newCapacity != data.length : newCapacity;
104 int[] newData = new int[newCapacity]; 104 int[] newData = new int[newCapacity];
105 System.arraycopy(data, 0, newData, 0, count); 105 System.arraycopy(data, 0, newData, 0, count);
106 data = newData; 106 data = newData;
107 } 107 }
108
109 @Override
110 public String toString() {
111 return String.format("%s[%d]", IntVector.class.getSimpleName(), size());
112 }
108 } 113 }