mirror of
https://github.com/corda/corda.git
synced 2024-12-24 07:06:44 +00:00
Remove the two header lines from the diff output to simplify the +/- … (#1875)
* Remove the two header lines from the diff output to simplify the +/- check. * Revert Kt class changes as they alter the public API.
This commit is contained in:
parent
327f0ebd73
commit
d1c5111567
@ -10,13 +10,14 @@ if [ ! -f $apiCurrent ]; then
|
|||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
diffContents=`diff -u $apiCurrent $APIHOME/../build/api/api-corda-*.txt`
|
# Remove the two header lines from the diff output.
|
||||||
echo "Diff contents:"
|
diffContents=`diff -u $apiCurrent $APIHOME/../build/api/api-corda-*.txt | tail --lines=+3`
|
||||||
|
echo "Diff contents:"
|
||||||
echo "$diffContents"
|
echo "$diffContents"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# A removed line means that an API was either deleted or modified.
|
# A removed line means that an API was either deleted or modified.
|
||||||
removals=$(echo "$diffContents" | grep "^-\s")
|
removals=$(echo "$diffContents" | grep "^-")
|
||||||
removalCount=`grep -v "^$" <<EOF | wc -l
|
removalCount=`grep -v "^$" <<EOF | wc -l
|
||||||
$removals
|
$removals
|
||||||
EOF
|
EOF
|
||||||
@ -29,7 +30,7 @@ if [ $removalCount -gt 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Adding new abstract methods could also break the API.
|
# Adding new abstract methods could also break the API.
|
||||||
newAbstracts=$(echo "$diffContents" | grep "^+\s" | grep "\(public\|protected\) abstract")
|
newAbstracts=$(echo "$diffContents" | grep "^+" | grep "\(public\|protected\) abstract")
|
||||||
abstractCount=`grep -v "^$" <<EOF | wc -l
|
abstractCount=`grep -v "^$" <<EOF | wc -l
|
||||||
$newAbstracts
|
$newAbstracts
|
||||||
EOF
|
EOF
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
@file:JvmName("SerializationAPI")
|
|
||||||
|
|
||||||
package net.corda.core.serialization
|
package net.corda.core.serialization
|
||||||
|
|
||||||
import net.corda.core.crypto.SecureHash
|
import net.corda.core.crypto.SecureHash
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
@file:JvmName("KotlinUtils")
|
|
||||||
|
|
||||||
package net.corda.core.utilities
|
package net.corda.core.utilities
|
||||||
|
|
||||||
import net.corda.core.internal.concurrent.get
|
import net.corda.core.internal.concurrent.get
|
||||||
|
Loading…
Reference in New Issue
Block a user