Skip to content

Commit a9a0426

Browse files
authored
Fix set mime types (#7)
* Make setMimeTypes public in Displayer API. This makes Displayer#setMimeTypes public. This was the original intent, but since the method wasn't public it is technically an API addition. * Fix tests broken by setMimeTypes change. * Version 0.2.1.
1 parent ac289cf commit a9a0426

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'java'
22
apply plugin: 'maven'
33

44
group = "jupyter"
5-
version = '0.1.0'
5+
version = '0.2.1'
66

77
repositories {
88
mavenCentral()

src/main/java/jupyter/Displayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public abstract class Displayer<T> {
4848
*
4949
* @param types MIME types that are supported by the kernel
5050
*/
51-
void setMimeTypes(String... types) {
51+
public void setMimeTypes(String... types) {
5252
}
5353
}

src/test/java/jupyter/TestMimeTypeNotification.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Map<String, String> display(String obj) {
5252
}
5353

5454
@Override
55-
void setMimeTypes(String... types) {
55+
public void setMimeTypes(String... types) {
5656
mimeTypes = new HashSet<>(Arrays.asList(types));
5757
}
5858
}

0 commit comments

Comments
 (0)