Questions tagged as 'warnings'

2
answers

Warning: "Possible multiple enumeration of IEnumerable"

I was doing some operations where I make use of collections. In one of these I needed to get a range (% w / o%) of numbers and did the following: var range = Enumerable.Range(0, 4); And then I tried to do something like var primeiro = ra...
asked by 25.11.2015 / 12:55
4
answers

How to check the variables that are not used?

There is some way to check which variables are not used within the scope > of a class? As in the example below, the variables test1 and test4 have no utility within the application, how could it find such variables? using System; using...
asked by 26.10.2016 / 20:27
1
answer

Because the compiler warns me Anonymous new Runnable () can be replaced with lambda

Because this code ( Thread ) shows this message ( in the compiler ), and how do you not show it again? Code: public void onCreate(Bundle icicle) { ... mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {...
asked by 03.07.2015 / 01:46
1
answer

Warning: array_filter () expects at most 2 parameters, 3 given

I have the following code that was taken from example # 3 in the PHP documentation for array_filter() : $arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4); var_dump(array_filter($arr, function($k) { return $k == 'b';...
asked by 14.11.2014 / 22:44
1
answer

Warning in comparison of floats how to proceed

In an exercise I've made, you're asked to do a compound interest calculation with for for 5% , 6% , 7% , 8% , 9% , and 10% As I could not use a counter check the counter being a type float , or even using switch , then I c...
asked by 19.01.2016 / 00:57
1
answer

What is the purpose of the contentDescription?

In my application I have a Warning as below:    [Accessibility] Missing contentDescription attribute on image Image I'vebeenresearchingandfoundthatthisisthe Accessibility but can not understand. What is the purpose of contentD...
asked by 03.10.2016 / 18:03
1
answer

Alert Resharper Access to modified closure

Implicitly captured closures or Access to modified closure It is a type of alert that Resharper shows in the code below, I would like to better understand this type of alert and what kind of problem it may cause in the cod...
asked by 05.10.2016 / 04:27
2
answers

What is the goal of baselineAligned?

At the time of developing an application, I came across the following warning:    Set android: baselineAligned="false" on this element for better   performance What is the goal of baselineAligned ? When should I use it?     
asked by 03.10.2016 / 20:24
1
answer

Enabled a PHP extension and a Warning appears?

I have enabled the php_oci8_11g.dll extension, but I get the following alert.    PHP Warning: PHP Startup: Unable to load dynamic library 'C: \ php \ ext \ php_oci8_11g.dll' -% 1 No a valid Win32 application. I've reinstalled PH...
asked by 26.01.2017 / 20:56
1
answer

Warning looping Python Pandas, How do looping differently?

Personally I'm doing this looping here: for i in range(1, len(candles)): if candles['askclose'][i]> candles['askopen'][i]: candles['Fechamento'][i]= 'alta' But the jupyternotebook always returns this warning and sometimes han...
asked by 07.12.2018 / 00:30