Skip to content

Commit

Permalink
all: drop unnecessary import renames for consistency
Browse files Browse the repository at this point in the history
Most of our imports already comply with the style, but this change makes it
consistent across the entire repository.

I suspect that these unnecessary imports are left-overs from differences between
Google-internal (where many imports are renamed) and Open Source.

Change-Id: Id5f6eabd22bcc72dd4e36dd018b6cc5138df7696
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/609875
Reviewed-by: Christian Höppner <hoeppi@google.com>
Auto-Submit: Michael Stapelberg <stapelberg@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
stapelberg authored and gopherbot committed Aug 30, 2024
1 parent 1531843 commit 013dd17
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion internal/editionssupport/editions.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Package editionssupport defines constants for editions that are supported.
package editionssupport

import descriptorpb "google.golang.org/protobuf/types/descriptorpb"
import "google.golang.org/protobuf/types/descriptorpb"

const (
Minimum = descriptorpb.Edition_EDITION_PROTO2
Expand Down
2 changes: 1 addition & 1 deletion internal/genid/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
// and the well-known types.
package genid

import protoreflect "google.golang.org/protobuf/reflect/protoreflect"
import "google.golang.org/protobuf/reflect/protoreflect"

const GoogleProtobuf_package protoreflect.FullName = "google.protobuf"
2 changes: 1 addition & 1 deletion internal/genid/map_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package genid

import protoreflect "google.golang.org/protobuf/reflect/protoreflect"
import "google.golang.org/protobuf/reflect/protoreflect"

// Generic field names and numbers for synthetic map entry messages.
const (
Expand Down
2 changes: 1 addition & 1 deletion internal/genid/wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package genid

import protoreflect "google.golang.org/protobuf/reflect/protoreflect"
import "google.golang.org/protobuf/reflect/protoreflect"

// Generic field name and number for messages in wrappers.proto.
const (
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sync/atomic"

"google.golang.org/protobuf/internal/flags"
proto "google.golang.org/protobuf/proto"
"google.golang.org/protobuf/proto"
piface "google.golang.org/protobuf/runtime/protoiface"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/msgfmt/format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
testpb "google.golang.org/protobuf/internal/testprotos/test"
textpb "google.golang.org/protobuf/internal/testprotos/textpb2"
dynpb "google.golang.org/protobuf/types/dynamicpb"
anypb "google.golang.org/protobuf/types/known/anypb"
"google.golang.org/protobuf/types/known/anypb"
durpb "google.golang.org/protobuf/types/known/durationpb"
tspb "google.golang.org/protobuf/types/known/timestamppb"
wpb "google.golang.org/protobuf/types/known/wrapperspb"
Expand Down
4 changes: 2 additions & 2 deletions proto/messageset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/testing/protopack"

messagesetpb "google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb"
msetextpb "google.golang.org/protobuf/internal/testprotos/messageset/msetextpb"
"google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb"
"google.golang.org/protobuf/internal/testprotos/messageset/msetextpb"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion reflect/protodesc/editions.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/types/descriptorpb"
gofeaturespb "google.golang.org/protobuf/types/gofeaturespb"
"google.golang.org/protobuf/types/gofeaturespb"
)

var defaults = &descriptorpb.FeatureSetDefaults{}
Expand Down
4 changes: 2 additions & 2 deletions reflect/protorange/range_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"google.golang.org/protobuf/testing/protocmp"

newspb "google.golang.org/protobuf/internal/testprotos/news"
anypb "google.golang.org/protobuf/types/known/anypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
"google.golang.org/protobuf/types/known/anypb"
"google.golang.org/protobuf/types/known/timestamppb"
)

func mustMarshal(m proto.Message) []byte {
Expand Down
4 changes: 2 additions & 2 deletions testing/protocmp/reflect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

testpb "google.golang.org/protobuf/internal/testprotos/test"
textpb "google.golang.org/protobuf/internal/testprotos/textpb2"
anypb "google.golang.org/protobuf/types/known/anypb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
"google.golang.org/protobuf/types/known/anypb"
"google.golang.org/protobuf/types/known/wrapperspb"
)

func TestReflect(t *testing.T) {
Expand Down

0 comments on commit 013dd17

Please sign in to comment.