Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: tools/servicec/lib/src/resources/java/dartino/MessageBuilder.java

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 package fletch; 5 package dartino;
6 6
7 public class MessageBuilder { 7 public class MessageBuilder {
8 public MessageBuilder(int space) { 8 public MessageBuilder(int space) {
9 segments = 1; 9 segments = 1;
10 first = new BuilderSegment(this, 0, space); 10 first = new BuilderSegment(this, 0, space);
11 last = first; 11 last = first;
12 } 12 }
13 13
14 public BuilderSegment first() { return first; } 14 public BuilderSegment first() { return first; }
15 15
(...skipping 26 matching lines...) Expand all
42 BuilderSegment segment = new BuilderSegment(this, segments++, capacity); 42 BuilderSegment segment = new BuilderSegment(this, segments++, capacity);
43 last.setNext(segment); 43 last.setNext(segment);
44 last = segment; 44 last = segment;
45 return segment; 45 return segment;
46 } 46 }
47 47
48 private BuilderSegment first; 48 private BuilderSegment first;
49 private BuilderSegment last; 49 private BuilderSegment last;
50 private int segments; 50 private int segments;
51 }; 51 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698