Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add newBuilder() to logging.SourceLocation #3339

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public final class SourceLocation implements Serializable {
private final Long line;
private final String function;

public static Builder newBuilder() {
return new Builder();
}

/**
* A builder for {@code SourceLocation} objects.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class SourceLocationTest {
private static final String FILE = "file";
private static final Long LINE = 42L;
private static final String FUNCTION = "function";
private static final SourceLocation SOURCE_LOCATION = new SourceLocation.Builder()
private static final SourceLocation SOURCE_LOCATION = SourceLocation.newBuilder()
.setFile(FILE)
.setLine(LINE)
.setFunction(FUNCTION)
Expand Down