-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not resolve source prefixes before checking against java sources
PiperOrigin-RevId: 577988802
- Loading branch information
1 parent
27bf3aa
commit 8ee60ff
Showing
7 changed files
with
92 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
querysync/javatests/com/google/idea/blaze/qsync/testdata/nestedproto/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
proto_library( | ||
name = "nested_proto", | ||
srcs = ["java/com/testdata/nestedproto/proto/nested.proto"], | ||
) | ||
|
||
java_lite_proto_library( | ||
name = "nested_java_proto_lite", | ||
deps = [":nested_proto"], | ||
) | ||
|
||
java_library( | ||
name = "consumer", | ||
srcs = ["java/com/testdata/nestedproto/NestedProtoConsumer.java"], | ||
deps = [":nested_java_proto_lite"], | ||
) |
26 changes: 26 additions & 0 deletions
26
...a/blaze/qsync/testdata/nestedproto/java/com/testdata/nestedproto/NestedProtoConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright 2023 The Bazel Authors. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.testdata.nestedproto; | ||
|
||
import com.google.idea.blaze.qsync.testdata.nestedproto.proto.Nested.NestedProtoTest; | ||
|
||
public class NestedProtoConsumer { | ||
private NestedProtoConsumer() {} | ||
|
||
public static String getMessage(NestedProtoTest testProto) { | ||
return testProto.getMessage(); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...le/idea/blaze/qsync/testdata/nestedproto/java/com/testdata/nestedproto/proto/nested.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
syntax = "proto3"; | ||
|
||
package buildgraph; | ||
|
||
option java_package = "com.google.idea.blaze.qsync.testdata.nestedproto.proto"; | ||
|
||
message NestedProtoTest { | ||
optional string message = 1; | ||
} |