Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @CheckReturnValue to Truth's package-info.java.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=113490153
- Loading branch information
Showing
17 changed files
with
77 additions
and
49 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
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
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
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 |
---|---|---|
@@ -1,29 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- semi-autogenerated module descriptor --> | ||
<module> | ||
<source path=""> | ||
<!-- Hack to keep collect from hiding collect.testing supersource: --> | ||
<exclude name="**/testing/**"/> | ||
</source> | ||
|
||
<!-- | ||
We used to set this only for packages that had manual supersource. | ||
That worked everywhere that I know of except for one place: | ||
when running the GWT util.concurrent tests under Guava. | ||
The problem is that GWT responds poorly to two .gwt.xml files in the same Java package: | ||
http://goo.gl/CO7dLB | ||
The summary is that it ignores one file in favor of the other. | ||
util.concurrent, like nearly all our packages, has two .gwt.xml files: one for prod and one for tests. | ||
util.concurrent, unlike our other packages, has, as of this writing, test supersource but no prod supersource. | ||
GWT happens to use the prod .gwt.xml, so it looks for no supersource for tests, either. | ||
This causes it to fail to find AtomicLongMapTest. | ||
Our workaround is to tell GWT that util.concurrent and all other packages have prod supersource, even if they have none. | ||
GWT is happy to ignore us when we specify a nonexistent path. | ||
(I hope that this workaround does not cause its own problems in the future.) | ||
--> | ||
<super-source path="super"/> | ||
<inherits name="com.google.common.annotations.Annotations"/> | ||
<inherits name="com.google.common.base.Base"/> | ||
<inherits name="com.google.common.collect.Collect"/> | ||
<inherits name="com.google.common.primitives.Primitives"/> | ||
<inherits name="com.google.gwt.core.Core"/> | ||
|
||
<source path=""> | ||
|
||
<!-- Hack to keep collect from hiding collect.testing supersource: --> | ||
|
||
<exclude name="**/testing/**"/> | ||
|
||
</source> | ||
|
||
<!-- We used to set this only for packages that had manual supersource. That worked everywhere that I know of except for one place: when running the GWT util.concurrent tests under Guava. The problem is that GWT responds poorly to two .gwt.xml files in the same Java package: http://goo.gl/CO7dLB The summary is that it ignores one file in favor of the other. util.concurrent, like nearly all our packages, has two .gwt.xml files: one for prod and one for tests. util.concurrent, unlike our other packages, has, as of this writing, test supersource but no prod supersource. GWT happens to use the prod .gwt.xml, so it looks for no supersource for tests, either. This causes it to fail to find AtomicLongMapTest. Our workaround is to tell GWT that util.concurrent and all other packages have prod supersource, even if they have none. GWT is happy to ignore us when we specify a nonexistent path. (I hope that this workaround does not cause its own problems in the future.) --> | ||
|
||
<super-source path="super"/> | ||
|
||
<inherits name="com.google.common.annotations.Annotations"/> | ||
|
||
<inherits name="com.google.common.base.Base"/> | ||
|
||
<inherits name="com.google.common.collect.Collect"/> | ||
|
||
<inherits name="com.google.common.primitives.Primitives"/> | ||
|
||
<inherits name="com.google.gwt.core.Core"/> | ||
|
||
</module> |
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
29 changes: 29 additions & 0 deletions
29
core/src/main/java/com/google/common/truth/package-info.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,29 @@ | ||
/* | ||
* Copyright (c) 2016 Google, Inc. | ||
* | ||
* 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. | ||
*/ | ||
|
||
/** | ||
* Truth is an open source, fluent testing framework for Java that is designed to make your | ||
* test assertions and failure messages more readable. | ||
* | ||
* <p>This package is a part of the open-source | ||
* <a href="http://github.com/google/truth">Truth</a> library. | ||
*/ | ||
@CheckReturnValue | ||
@ParametersAreNonnullByDefault | ||
package com.google.common.truth; | ||
|
||
import javax.annotation.CheckReturnValue; | ||
import javax.annotation.ParametersAreNonnullByDefault; |
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
Oops, something went wrong.