Skip to content

Commit 45da015

Browse files
committed
Annotate all remaining core files as using frozen string literals, even if there are no string literals.
It's a lot easier to standardize on all files using frozen string literals than to have to think about depending on what core file you're working on.
1 parent 243590e commit 45da015

24 files changed

+48
-0
lines changed

src/main/ruby/core/basic_object.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2007-2015, Evan Phoenix and contributors
24
# All rights reserved.
35
#

src/main/ruby/core/binding.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2014, 2017 Oracle and/or its affiliates. All rights reserved. This
24
# code is released under a tri EPL/GPL/LGPL license. You can use it,
35
# redistribute it and/or modify it under the terms of the:

src/main/ruby/core/channel.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2015, 2017 Oracle and/or its affiliates. All rights reserved. This
24
# code is released under a tri EPL/GPL/LGPL license. You can use it,
35
# redistribute it and/or modify it under the terms of the:

src/main/ruby/core/class.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2007-2015, Evan Phoenix and contributors
24
# All rights reserved.
35
#

src/main/ruby/core/comparable.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2007-2015, Evan Phoenix and contributors
24
# All rights reserved.
35
#

src/main/ruby/core/enumerable_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2007-2015, Evan Phoenix and contributors
24
# All rights reserved.
35
#

src/main/ruby/core/errno.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2016, 2017 Oracle and/or its affiliates. All rights reserved. This
24
# code is released under a tri EPL/GPL/LGPL license. You can use it,
35
# redistribute it and/or modify it under the terms of the:

src/main/ruby/core/file_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2007-2015, Evan Phoenix and contributors
24
# All rights reserved.
35
#

src/main/ruby/core/float.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2014, 2017 Oracle and/or its affiliates. All rights reserved. This
24
# code is released under a tri EPL/GPL/LGPL license. You can use it,
35
# redistribute it and/or modify it under the terms of the:

src/main/ruby/core/mutex.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2007-2015, Evan Phoenix and contributors
24
# All rights reserved.
35
#

0 commit comments

Comments
 (0)