Builds a new instance of Uri as specified by the setters.
()
| 1035 | |
| 1036 | /** Builds a new instance of {@link Uri} as specified by the setters. */ |
| 1037 | public Uri build() { |
| 1038 | checkState(scheme != null, "Missing required scheme."); |
| 1039 | if (host == null) { |
| 1040 | checkState(port == null, "Cannot set port without host."); |
| 1041 | checkState(userInfo == null, "Cannot set userInfo without host."); |
| 1042 | } |
| 1043 | return new Uri(this); |
| 1044 | } |
| 1045 | } |
| 1046 | |
| 1047 | /** |
no outgoing calls
no test coverage detected