Skip to content

Commit

Permalink
[Truffle] Findbugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed May 31, 2015
1 parent 5cea5c1 commit 02cb2e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions tool/truffle-findbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,16 @@
<Bug pattern="BC_UNCONFIRMED_CAST" />
</Match>

<!-- Temporary while we remove RubyBasicObject -->

<Match>
<Class name="~org\.jruby\.truffle\..*" />
<Bug pattern="BC_UNCONFIRMED_CAST" />
</Match>

<Match>
<Class name="~org\.jruby\.truffle\..*" />
<Bug pattern="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE" />
</Match>

</FindBugsFilter>
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ public GetAddrInfoNode(RubyContext context, SourceSection sourceSection) {

@Specialization(guards = "isNil(hostName)")
public int getaddrinfo(RubyBasicObject hostName, RubyString serviceName, RubyBasicObject hintsPointer, RubyBasicObject resultsPointer) {
return getaddrinfo(createString("0.0.0.0"), serviceName, hintsPointer, resultsPointer);
return getaddrinfo((RubyString) createString("0.0.0.0"), serviceName, hintsPointer, resultsPointer);
}

@Specialization
Expand Down

0 comments on commit 02cb2e9

Please sign in to comment.