-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from olafurpg/upgrade
Upgrade dependencies
- Loading branch information
Showing
21 changed files
with
7,309 additions
and
323 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
Binary file not shown.
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
20 changes: 20 additions & 0 deletions
20
metadoc-cli/src/main/scala/metadoc/cli/FingerprintOps.scala
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,20 @@ | ||
package metadoc.cli | ||
|
||
import java.nio.ByteBuffer | ||
import java.nio.charset.StandardCharsets | ||
import java.security.MessageDigest | ||
import javax.xml.bind.DatatypeConverter | ||
|
||
object FingerprintOps { | ||
|
||
def md5(string: String): String = { | ||
md5(ByteBuffer.wrap(string.getBytes(StandardCharsets.UTF_8))) | ||
} | ||
|
||
def md5(buffer: ByteBuffer): String = { | ||
val md = MessageDigest.getInstance("MD5") | ||
md.update(buffer) | ||
DatatypeConverter.printHexBinary(md.digest()) | ||
} | ||
|
||
} |
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
9 changes: 9 additions & 0 deletions
9
metadoc-cli/src/main/scala/scala/meta/internal/metadoc/ScalametaInternals.scala
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,9 @@ | ||
package scala.meta.internal.metadoc | ||
|
||
import scala.meta.internal.semanticdb.Scala._ | ||
|
||
object ScalametaInternals { | ||
def ownerAndDesc(symbol: String): (String, Descriptor) = { | ||
DescriptorParser(symbol).swap | ||
} | ||
} |
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
Oops, something went wrong.