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

Side by Side Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/formatter/testsource/test007$A_out.dart

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * this is a test class 2 * this is a test class
3 */ 3 */
4 class Version { 4 class Version {
5 int major; 5 int major;
6 int minor; 6 int minor;
7 int service; 7 int service;
8 String qualifier; 8 String qualifier;
9 9
10 Version.full(int this.major, int this.minor, int this.service, String this.qua lifier); 10 Version.full(int this.major, int this.minor, int this.service, String this.qua lifier);
11 Version.part(major, minor, service):this.full(major, minor, service, null); 11 Version.part(major, minor, service):this.full(major, minor, service, null);
12 12
13 String toString() { 13 String toString() {
14 StringBuffer sb = new StringBuffer(); 14 StringBuffer sb = new StringBuffer();
15 sb.add(this.major).add('.'). 15 sb..write(this.major)..write('.').
16 add(this.minor).add('.'). 16 ..write(this.minor)..write('.').
17 add(service).add('.'). 17 ..write(service)..write('.').
18 add(this.qualifier); 18 ..write(this.qualifier);
19 return sb.toString(); 19 return sb.toString();
20 } 20 }
21 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698