Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
fdd9d3c8
Commit
fdd9d3c8
authored
Aug 08, 2009
by
kenton@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove more of the stuff that was supposed to be removed in r190.
parent
323e6321
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
UnknownFieldSet.java
java/src/main/java/com/google/protobuf/UnknownFieldSet.java
+2
-19
No files found.
java/src/main/java/com/google/protobuf/UnknownFieldSet.java
View file @
fdd9d3c8
...
...
@@ -30,8 +30,6 @@
package
com
.
google
.
protobuf
;
import
com.google.protobuf.Internal.ThreadLocalQuickQueue
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
...
...
@@ -278,9 +276,6 @@ public final class UnknownFieldSet implements MessageLite {
* <p>Use {@link UnknownFieldSet#newBuilder()} to construct a {@code Builder}.
*/
public
static
final
class
Builder
implements
MessageLite
.
Builder
{
private
static
ThreadLocalQuickQueue
<
Builder
>
builders
=
new
ThreadLocalQuickQueue
<
Builder
>();
// This constructor should never be called directly (except from 'create').
private
Builder
()
{}
...
...
@@ -293,10 +288,7 @@ public final class UnknownFieldSet implements MessageLite {
private
Field
.
Builder
lastField
;
private
static
Builder
create
()
{
Builder
builder
=
builders
.
get
().
poll
();
if
(
builder
==
null
)
{
builder
=
new
Builder
();
}
Builder
builder
=
new
Builder
();
builder
.
reinitialize
();
return
builder
;
}
...
...
@@ -343,7 +335,6 @@ public final class UnknownFieldSet implements MessageLite {
result
=
new
UnknownFieldSet
(
Collections
.
unmodifiableMap
(
fields
));
}
fields
=
null
;
builders
.
get
().
offer
(
this
);
return
result
;
}
...
...
@@ -812,18 +803,11 @@ public final class UnknownFieldSet implements MessageLite {
* <p>Use {@link Field#newBuilder()} to construct a {@code Builder}.
*/
public
static
final
class
Builder
{
private
static
ThreadLocalQuickQueue
<
Builder
>
builders
=
new
ThreadLocalQuickQueue
<
Builder
>();
// This constructor should never be called directly (except from 'create').
private
Builder
()
{}
private
static
Builder
create
()
{
Builder
builder
=
builders
.
get
().
poll
();
if
(
builder
==
null
)
{
builder
=
new
Builder
();
}
Builder
builder
=
new
Builder
();
builder
.
result
=
new
Field
();
return
builder
;
}
...
...
@@ -866,7 +850,6 @@ public final class UnknownFieldSet implements MessageLite {
final
Field
returnMe
=
result
;
result
=
null
;
builders
.
get
().
offer
(
this
);
return
returnMe
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment