Skip to content

Commit

Permalink
Removed some C++ style code
Browse files Browse the repository at this point in the history
Signed-off-by: Kelly Davis <kdavis@mozilla.com>
  • Loading branch information
kdavis-mozilla committed Mar 7, 2016
1 parent 404a2f5 commit 0a7f78f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,22 +141,22 @@ public Long getFrequency() {
* the same value for all non-null members of this instance.
*/
boolean isCompatible(AudioFormat audioFormat) {
if (getContainer() && (getContainer() != audioFormat.getContainer())) {
if ((null != getContainer()) && (getContainer() != audioFormat.getContainer())) {
return false;
}
if (getCodec() && (getCodec() != audioFormat.getCodec())) {
if ((null != getCodec()) && (getCodec() != audioFormat.getCodec())) {
return false;
}
if (getBigEndian() && (getBigEndian() != audioFormat.getBigEndian())) {
if ((null != getBigEndian()) && (getBigEndian() != audioFormat.getBigEndian())) {
return false;
}
if (getBitDepth() && (getBitDepth() != audioFormat.getBitDepth())) {
if ((null != getBitDepth()) && (getBitDepth() != audioFormat.getBitDepth())) {
return false;
}
if (getBitRate() && (getBitRate() != audioFormat.getBitRate())) {
if ((null != getBitRate()) && (getBitRate() != audioFormat.getBitRate())) {
return false;
}
if (getFrequency() && (getFrequency() != audioFormat.getFrequency())) {
if ((null != getFrequency()) && (getFrequency() != audioFormat.getFrequency())) {
return false;
}
return true;
Expand Down

0 comments on commit 0a7f78f

Please sign in to comment.