Skip to content

Conversation

@nizshee
Copy link
Owner

@nizshee nizshee commented Mar 20, 2016

build.gradle Outdated

dependencies {
compile 'org.jetbrains:annotations:15.0'
compile 'com.googlecode.json-simple:json-simple:1.1'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

неиспользуемые зависимости должны быть удалены

@nizshee
Copy link
Owner Author

nizshee commented Apr 4, 2016

Вроде исправил.
Во всех тестовых функциях я изменил тип на Object -> Integer. Это должно проверять wildcard.


@org.junit.Test
public void testMap() throws Exception {
assertEquals(Collections.map(Function1Test.SQUARE, LIST), LIST_SQUARED);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wildcard

@nizshee
Copy link
Owner Author

nizshee commented Apr 5, 2016

В предикатах вернул тип Integer для >= <=, теперь при композиции с Indicator проверяется wildcard.
Изменил тип Function1Test.SQUARE на Object -> Integer. В прошлый раз просмотрел. Теперь и compose, и map проверяют wildcard.

@sproshev
Copy link

зачтено, 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants