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

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed)

Created:
7 years, 9 months ago by floitsch
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove deprecated StringBuffer.add, addAll and addCharCode. Committed: https://code.google.com/p/dart/source/detail?r=19690

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+774 lines, -739 lines) Patch
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/formatter/testsource/test007$A_in.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/formatter/testsource/test007$A_out.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/scheduled_test/lib/src/descriptor/directory.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/descriptor/utils.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/scheduled_test/lib/src/schedule_error.dart View 1 chunk +12 lines, -12 lines 0 comments Download
M pkg/scheduled_test/test/metatest.dart View 1 chunk +8 lines, -8 lines 0 comments Download
M pkg/webdriver/lib/webdriver.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/yaml/lib/parser.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/process_patch.dart View 3 chunks +9 lines, -9 lines 0 comments Download
M runtime/lib/errors_patch.dart View 2 chunks +10 lines, -10 lines 0 comments Download
M runtime/lib/growable_array.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/lib/integers.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 2 chunks +8 lines, -8 lines 0 comments Download
M runtime/lib/string_base.dart View 5 chunks +15 lines, -15 lines 0 comments Download
M runtime/vm/snapshot_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M samples/chat/chat_server_lib.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M samples/chat/chat_stress_client.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M samples/chat/dart_client/chat.dart View 3 chunks +20 lines, -20 lines 0 comments Download
M samples/dartcombat/views.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M samples/swarm/swarm_ui_lib/view/MeasureText.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M samples/swarm/swarm_ui_lib/view/SliderMenu.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/tests/samples/chat/chat_server_test.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M samples/tests/samples/lib/layout/grid_layout_demo.dart View 3 chunks +6 lines, -6 lines 0 comments Download
M samples/third_party/dromaeo/common/BenchUtil.dart View 2 chunks +7 lines, -7 lines 0 comments Download
M sdk/lib/_collection_dev/iterable.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_collection_dev/to_string.dart View 3 chunks +10 lines, -10 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/constants.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 19 chunks +44 lines, -44 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart View 1 chunk +2 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/core_patch.dart View 2 chunks +8 lines, -8 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_helper.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/string_helper.dart View 5 chunks +15 lines, -15 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/byte_strings.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/codegen.dart View 1 chunk +2 lines, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/util/util.dart View 4 chunks +13 lines, -13 lines 0 comments Download
M sdk/lib/_internal/compiler/samples/leap/leap_leg.dart View 2 chunks +9 lines, -9 lines 0 comments Download
M sdk/lib/_internal/dartdoc/lib/src/client/client-live-nav.dart View 2 chunks +10 lines, -10 lines 0 comments Download
M sdk/lib/_internal/dartdoc/lib/src/client/search.dart View 1 chunk +19 lines, -19 lines 0 comments Download
M sdk/lib/collection/collections.dart View 2 chunks +8 lines, -8 lines 0 comments Download
M sdk/lib/core/expect.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M sdk/lib/core/iterable.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M sdk/lib/core/string_buffer.dart View 2 chunks +0 lines, -28 lines 0 comments Download
M sdk/lib/crypto/crypto_utils.dart View 3 chunks +16 lines, -16 lines 0 comments Download
M sdk/lib/html/html_common/lists.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M sdk/lib/io/buffer_list.dart View 1 chunk +5 lines, -0 lines 3 comments Download
M sdk/lib/io/websocket_impl.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/json/json_base.dart View 2 chunks +15 lines, -15 lines 0 comments Download
M sdk/lib/uri/encode_decode.dart View 4 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/uri/uri_base.dart View 3 chunks +13 lines, -13 lines 0 comments Download
M tests/co19/co19-compiler.status View 1 chunk +20 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 chunk +19 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 chunk +20 lines, -0 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 chunk +19 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/deprecated_features_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/minify_many_locals_test.dart View 1 chunk +5 lines, -5 lines 0 comments Download
M tests/compiler/dart2js/unparser_test.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M tests/corelib/collection_to_string_test.dart View 5 chunks +15 lines, -15 lines 0 comments Download
M tests/corelib/reg_exp_all_matches_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tests/corelib/string_buffer_test.dart View 4 chunks +48 lines, -64 lines 0 comments Download
M tests/isolate/mandel_isolate_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/language/call_operator_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/language/call_through_getter_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/field_initialization_order_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/final_field_initialization_order_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/string_interpolation_and_buffer.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/lib/async/stream_transform_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M tests/standalone/io/directory_list_nonexistent_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/standalone/io/directory_test.dart View 3 chunks +6 lines, -6 lines 0 comments Download
M tests/standalone/io/file_input_stream_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_basic_test.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/io/http_detach_socket_test.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M tests/standalone/io/http_proxy_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/process_test_util.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/string_decoder_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tools/line_doc_comments.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/apidoc/mdn/extract.dart View 4 chunks +4 lines, -4 lines 0 comments Download
M utils/apidoc/mdn/prettyPrint.dart View 14 chunks +21 lines, -21 lines 0 comments Download
M utils/css/generate.dart View 2 chunks +11 lines, -11 lines 0 comments Download
M utils/css/parser.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/css/source.dart View 2 chunks +11 lines, -11 lines 0 comments Download
M utils/css/tokenkind.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/css/tool.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/css/tree.dart View 13 chunks +34 lines, -34 lines 0 comments Download
M utils/css/treebase.dart View 2 chunks +10 lines, -10 lines 0 comments Download
M utils/css/uitest.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M utils/lib/file_system_memory.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/peg/pegparser.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M utils/pub/directory_tree.dart View 2 chunks +7 lines, -8 lines 0 comments Download
M utils/pub/pub.dart View 3 chunks +13 lines, -12 lines 0 comments Download
M utils/template/codegen.dart View 13 chunks +68 lines, -68 lines 0 comments Download
M utils/template/htmltree.dart View 5 chunks +12 lines, -12 lines 0 comments Download
M utils/template/parser.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/template/source.dart View 2 chunks +11 lines, -11 lines 0 comments Download
M utils/template/tool.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/template/tree.dart View 2 chunks +8 lines, -11 lines 2 comments Download
M utils/template/uitest.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/testrunner/layout_test_controller.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/peg/peg_test.dart View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
floitsch
https://codereview.chromium.org/12473003/diff/1/sdk/lib/io/buffer_list.dart File sdk/lib/io/buffer_list.dart (right): https://codereview.chromium.org/12473003/diff/1/sdk/lib/io/buffer_list.dart#newcode29 sdk/lib/io/buffer_list.dart:29: void write(List<int> buffer, [int offset = 0]) { I ...
7 years, 9 months ago (2013-03-06 13:38:14 UTC) #1
Anders Johnsen
LGTM https://codereview.chromium.org/12473003/diff/1/sdk/lib/io/buffer_list.dart File sdk/lib/io/buffer_list.dart (right): https://codereview.chromium.org/12473003/diff/1/sdk/lib/io/buffer_list.dart#newcode29 sdk/lib/io/buffer_list.dart:29: void write(List<int> buffer, [int offset = 0]) { ...
7 years, 9 months ago (2013-03-06 14:31:00 UTC) #2
floitsch
7 years, 9 months ago (2013-03-06 14:59:04 UTC) #3
scheglov
Editor and samples LGTM
7 years, 9 months ago (2013-03-06 16:06:29 UTC) #4
srdjan
VM libs LGTM
7 years, 9 months ago (2013-03-06 17:19:53 UTC) #5
Bob Nystrom
pkg/ and utils/ LGTM.
7 years, 9 months ago (2013-03-06 18:45:59 UTC) #6
floitsch
Committed patchset #1 manually as r19690 (presubmit successful).
7 years, 9 months ago (2013-03-08 13:08:13 UTC) #7
floitsch
7 years, 9 months ago (2013-03-08 13:16:07 UTC) #8
floitsch
7 years, 9 months ago (2013-03-08 13:18:39 UTC) #9
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12473003/diff/1/sdk/lib/io/buffer_list...
File sdk/lib/io/buffer_list.dart (right):

https://chromiumcodereview.appspot.com/12473003/diff/1/sdk/lib/io/buffer_list...
sdk/lib/io/buffer_list.dart:29: void write(List<int> buffer, [int offset = 0]) {
On 2013/03/06 14:31:00, Anders Johnsen wrote:
> On 2013/03/06 13:38:14, floitsch wrote:
> > I needed to add this method so that the _BufferList could be used instead of
a
> > STringBuffer.
> 
> SGTM, can we remove add then?

Maybe. I don't know how _BufferList is otherwise used. I left it as is. If
_BufferList is only here to be an alternative to StringBuffer, then it should
probably implement the StringSink interface.

https://chromiumcodereview.appspot.com/12473003/diff/1/utils/template/tree.dart
File utils/template/tree.dart (right):

https://chromiumcodereview.appspot.com/12473003/diff/1/utils/template/tree.da...
utils/template/tree.dart:86: buf.write('\n');
On 2013/03/06 14:31:00, Anders Johnsen wrote:
> writeln('')?

Missed it before committing...
Yes "writeln" would work, but it's not a big deal.

Powered by Google App Engine
This is Rietveld 408576698