This repository was archived by the owner on Dec 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
main/java/io/opencensus/stats
test/java/io/opencensus/stats Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3838@ AutoValue
3939public abstract class View {
4040
41- @ VisibleForTesting static final int NAME_MAX_LENGTH = 256 ;
41+ @ VisibleForTesting static final int NAME_MAX_LENGTH = 255 ;
4242
4343 View () {}
4444
@@ -116,7 +116,7 @@ public abstract static class Name {
116116
117117 /**
118118 * Creates a {@code View.Name} from a {@code String}. Should be a ASCII string with a length no
119- * greater than 256 characters.
119+ * greater than 255 characters.
120120 *
121121 * <p>Suggested format for name: {@code <web_host>/<path>}.
122122 *
@@ -126,7 +126,7 @@ public abstract static class Name {
126126 public static Name create (String name ) {
127127 checkArgument (
128128 StringUtil .isPrintableString (name ) && name .length () <= NAME_MAX_LENGTH ,
129- "Name should be a ASCII string with a length no greater than 256 characters." );
129+ "Name should be a ASCII string with a length no greater than 255 characters." );
130130 return new AutoValue_View_Name (name );
131131 }
132132 }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public final class ViewTest {
4141
4242 @ Test
4343 public void testConstants () {
44- assertThat (View .NAME_MAX_LENGTH ).isEqualTo (256 );
44+ assertThat (View .NAME_MAX_LENGTH ).isEqualTo (255 );
4545 }
4646
4747 @ Test
You can’t perform that action at this time.
0 commit comments