Remove throws statements from the API until we decide how to document it (#2912)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
This commit is contained in:
		
							parent
							
								
									9e1c76b324
								
							
						
					
					
						commit
						becded2181
					
				|  | @ -117,7 +117,6 @@ public interface SpanBuilder { | ||||||
|    * |    * | ||||||
|    * @param context the {@code Context}. |    * @param context the {@code Context}. | ||||||
|    * @return this. |    * @return this. | ||||||
|    * @throws NullPointerException if {@code context} is {@code null}. |  | ||||||
|    */ |    */ | ||||||
|   SpanBuilder setParent(Context context); |   SpanBuilder setParent(Context context); | ||||||
| 
 | 
 | ||||||
|  | @ -140,7 +139,6 @@ public interface SpanBuilder { | ||||||
|    * |    * | ||||||
|    * @param spanContext the context of the linked {@code Span}. |    * @param spanContext the context of the linked {@code Span}. | ||||||
|    * @return this. |    * @return this. | ||||||
|    * @throws NullPointerException if {@code spanContext} is {@code null}. |  | ||||||
|    */ |    */ | ||||||
|   SpanBuilder addLink(SpanContext spanContext); |   SpanBuilder addLink(SpanContext spanContext); | ||||||
| 
 | 
 | ||||||
|  | @ -154,8 +152,6 @@ public interface SpanBuilder { | ||||||
|    * @param spanContext the context of the linked {@code Span}. |    * @param spanContext the context of the linked {@code Span}. | ||||||
|    * @param attributes the attributes of the {@code Link}. |    * @param attributes the attributes of the {@code Link}. | ||||||
|    * @return this. |    * @return this. | ||||||
|    * @throws NullPointerException if {@code spanContext} is {@code null}. |  | ||||||
|    * @throws NullPointerException if {@code attributes} is {@code null}. |  | ||||||
|    */ |    */ | ||||||
|   SpanBuilder addLink(SpanContext spanContext, Attributes attributes); |   SpanBuilder addLink(SpanContext spanContext, Attributes attributes); | ||||||
| 
 | 
 | ||||||
|  | @ -172,7 +168,6 @@ public interface SpanBuilder { | ||||||
|    * @param key the key for this attribute. |    * @param key the key for this attribute. | ||||||
|    * @param value the value for this attribute. |    * @param value the value for this attribute. | ||||||
|    * @return this. |    * @return this. | ||||||
|    * @throws NullPointerException if {@code key} is {@code null}. |  | ||||||
|    */ |    */ | ||||||
|   SpanBuilder setAttribute(String key, String value); |   SpanBuilder setAttribute(String key, String value); | ||||||
| 
 | 
 | ||||||
|  | @ -186,7 +181,6 @@ public interface SpanBuilder { | ||||||
|    * @param key the key for this attribute. |    * @param key the key for this attribute. | ||||||
|    * @param value the value for this attribute. |    * @param value the value for this attribute. | ||||||
|    * @return this. |    * @return this. | ||||||
|    * @throws NullPointerException if {@code key} is {@code null}. |  | ||||||
|    */ |    */ | ||||||
|   SpanBuilder setAttribute(String key, long value); |   SpanBuilder setAttribute(String key, long value); | ||||||
| 
 | 
 | ||||||
|  | @ -200,7 +194,6 @@ public interface SpanBuilder { | ||||||
|    * @param key the key for this attribute. |    * @param key the key for this attribute. | ||||||
|    * @param value the value for this attribute. |    * @param value the value for this attribute. | ||||||
|    * @return this. |    * @return this. | ||||||
|    * @throws NullPointerException if {@code key} is {@code null}. |  | ||||||
|    */ |    */ | ||||||
|   SpanBuilder setAttribute(String key, double value); |   SpanBuilder setAttribute(String key, double value); | ||||||
| 
 | 
 | ||||||
|  | @ -214,7 +207,6 @@ public interface SpanBuilder { | ||||||
|    * @param key the key for this attribute. |    * @param key the key for this attribute. | ||||||
|    * @param value the value for this attribute. |    * @param value the value for this attribute. | ||||||
|    * @return this. |    * @return this. | ||||||
|    * @throws NullPointerException if {@code key} is {@code null}. |  | ||||||
|    */ |    */ | ||||||
|   SpanBuilder setAttribute(String key, boolean value); |   SpanBuilder setAttribute(String key, boolean value); | ||||||
| 
 | 
 | ||||||
|  | @ -227,8 +219,6 @@ public interface SpanBuilder { | ||||||
|    * @param key the key for this attribute. |    * @param key the key for this attribute. | ||||||
|    * @param value the value for this attribute. |    * @param value the value for this attribute. | ||||||
|    * @return this. |    * @return this. | ||||||
|    * @throws NullPointerException if {@code key} is {@code null}. |  | ||||||
|    * @throws NullPointerException if {@code value} is {@code null}. |  | ||||||
|    */ |    */ | ||||||
|   <T> SpanBuilder setAttribute(AttributeKey<T> key, T value); |   <T> SpanBuilder setAttribute(AttributeKey<T> key, T value); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -65,7 +65,6 @@ public interface Tracer { | ||||||
|    * |    * | ||||||
|    * @param spanName The name of the returned Span. |    * @param spanName The name of the returned Span. | ||||||
|    * @return a {@code Span.Builder} to create and start a new {@code Span}. |    * @return a {@code Span.Builder} to create and start a new {@code Span}. | ||||||
|    * @throws NullPointerException if {@code spanName} is {@code null}. |  | ||||||
|    */ |    */ | ||||||
|   SpanBuilder spanBuilder(String spanName); |   SpanBuilder spanBuilder(String spanName); | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue